State Machine function table to boolean equations?

This is a discussion on State Machine function table to boolean equations? within the C Programming forums, part of the General Programming Boards category; ok so my up coming project in C is gonna derive boolean equations from a state machine (up to 4 ...

  1. #1
    Registered User
    Join Date
    Jan 2011
    Posts
    36

    State Machine function table to boolean equations?

    ok so my up coming project in C is gonna derive boolean equations from a state machine (up to 4 states). more of this problem is designing this is work in C than actually programming it just wondering if anyone kinda had any ideas to get me started on the design of this? Another way i've seen this is asking for the "Next state equations" as well but i know people get mad if i dont post at least what i have so far for code and so to please them i would like at least to share this much:

    Code:
    #include<stdio.h>
    int main (void)
    {
    
    
    return 0;
    }
    sorry but i really just need more help designing this program more than anything, and please don't tell me to go look in a book, im looking online and in "Digital Electronics, A practical approach" and another book i really am trying but neither are really saying how to derive boolean equations from state machine function tables yet but i am still reading.

    Thank you
    Last edited by litzkrieg; 04-06-2011 at 10:57 AM. Reason: some N(asty) little mistake lol

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    'return' and 'Return' are not the same thing. So the code you have so far is wrong.


    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by quzah View Post
    'return' and 'Return' are not the same thing. So the code you have so far is wrong.
    LOL... now that's just nasty...

  4. #4
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,676
    Quote Originally Posted by CommonTater View Post
    LOL... now that's just nasty...
    Nasty, but pretty funny.

    @litzkrieg: You know people want to see you make an attempt before helping, so actually make one. Posting a program smaller than hello world is a pretty sad attempt. If you can't get anywhere with code, describe in plain English what you think you should do and we'll start guiding you down the right path. As a matter of fact, describing the solution in plain English should always precede beginning to program. And yes, a "next state" function is not a bad idea, just make sure you specify the right inputs and outputs for it to make it's decisions. It would also help if we had your actual assignment, so we know what info you're given and what specifically you need to do.

  5. #5
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by anduril462 View Post
    Nasty, but pretty funny.
    Hense the L(auging) O(ut) L(oud) at the beginning...

    I darned near spit coffee all over my new 1080p monitor....

    On topic... yes the OP needs to make a bit more effort and ask specific questions.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. doubt in c parser coding
    By akshara.sinha in forum C Programming
    Replies: 4
    Last Post: 12-23-2007, 01:49 PM
  2. Replies: 28
    Last Post: 07-17-2006, 12:35 AM
  3. Bisection Method function value at root incorrect
    By mr_glass in forum C Programming
    Replies: 3
    Last Post: 11-10-2005, 09:10 AM
  4. I need help with passing pointers in function calls
    By vien_mti in forum C Programming
    Replies: 3
    Last Post: 04-24-2002, 11:00 AM
  5. qt help
    By Unregistered in forum Linux Programming
    Replies: 1
    Last Post: 04-20-2002, 10:51 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21