943,965 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 2100
  • C RSS
Mar 9th, 2005
0

readin flip-flop charecteristic table

Expand Post »
I not able to decide how to read in a data of the following table

A B(initial values) | x = 0 | x = 1
------+--------+--------
0 0 | q=0, y=0 | q=3, y=1 note: q=0 means A and B are 0,
0 1 | q=0, y=0 | q=2, y=0 q=1 means A is 0 and B is 1 and so on,
1 0 | q=1, y=1 | q=3, y=1 x is the input in the table
1 1 | q=0, y=0 | q=2, y=0 outputs are 'new q and y
------+--------+--------
This is the truth table of a flip=flop(Could be hypothetical).
I'll need to refer to this table repetedly durin the rest of the program.for eg: the first thing I need to do is to make its 'excitation' table.


Thanks , bye

Arjun
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
arikeri is offline Offline
25 posts
since Mar 2005
Mar 9th, 2005
0

Re: readin flip-flop charecteristic table

Quote originally posted by arikeri ...
I not able to decide how to read in a data of the following table

A B(initial values) | x = 0 | x = 1
------+--------+--------
0 0 | q=0, y=0 | q=3, y=1 note: q=0 means A and B are 0,
0 1 | q=0, y=0 | q=2, y=0 q=1 means A is 0 and B is 1 and so on,
1 0 | q=1, y=1 | q=3, y=1 x is the input in the table
1 1 | q=0, y=0 | q=2, y=0 outputs are 'new q and y
------+--------+--------
This is the truth table of a flip=flop(Could be hypothetical).
I'll need to refer to this table repetedly durin the rest of the program.for eg: the first thing I need to do is to make its 'excitation' table.


Thanks , bye

Arjun

A B | x = 0 | x = 1
- --+--------+--------
0 0 | q=0, 0 | q=3, 1
0 1 | q=0, 0 | q=2, 0
1 0 | q=1, 1 | q=3, 1
1 1 | q=0, 0 | q=2, 0
------+--------+--------

Thanks , bye

Arjun
Reputation Points: 10
Solved Threads: 0
Light Poster
arikeri is offline Offline
25 posts
since Mar 2005
Mar 9th, 2005
0

Re: readin flip-flop charecteristic table

Quote originally posted by arikeri ...
I not able to decide how to read in a data of the following table
Are you saying that the following is in a text file?
  1. A B(initial values) | x = 0 | x = 1
  2. ------+--------+--------
  3. 0 0 | q=0, y=0 | q=3, y=1 note: q=0 means A and B are 0,
  4. 0 1 | q=0, y=0 | q=2, y=0 q=1 means A is 0 and B is 1 and so on,
  5. 1 0 | q=1, y=1 | q=3, y=1 x is the input in the table
  6. 1 1 | q=0, y=0 | q=2, y=0 outputs are 'new q and y
  7. ------+--------+--------
  8.  
And that you need to read this file and import this truth table information to program variables?

I'm afraid I don't understand your question.
Team Colleague
Reputation Points: 2780
Solved Threads: 312
long time no c
Dave Sinkula is offline Offline
4,790 posts
since Apr 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: suggestion on data stuctures to use
Next Thread in C Forum Timeline: Adding to linked list from external file





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC