readin flip-flop charecteristic table

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Mar 2005
Posts: 25
Reputation: arikeri is an unknown quantity at this point 
Solved Threads: 0
arikeri arikeri is offline Offline
Light Poster

readin flip-flop charecteristic table

 
0
  #1
Mar 9th, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 25
Reputation: arikeri is an unknown quantity at this point 
Solved Threads: 0
arikeri arikeri is offline Offline
Light Poster

Re: readin flip-flop charecteristic table

 
0
  #2
Mar 9th, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 4,443
Reputation: Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future 
Solved Threads: 250
Team Colleague
Dave Sinkula's Avatar
Dave Sinkula Dave Sinkula is offline Offline
long time no c

Re: readin flip-flop charecteristic table

 
0
  #3
Mar 9th, 2005
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.
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C Forum
Thread Tools Search this Thread



Tag cloud for C
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC