Question

Write Verilog code for a counter with T flip‐flops that goes through the following binary repeated sequence: 0, 1, 3, 7, 6, 4.


Write verilog code for a counter with t flip flop that goes through binary sequence 0,1,3,7,6,4


Kindly give me this verilog code till today night 

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Find the state diagram of the counter as below:

that counts from 0,1,3,7,6,4 and repeat.

find the state table as below:

flip flop input is derived from excitation table of T flip flop, and from present state and next state.

Qn Qn+1 T-i/p
0 0 0
0 1 1
1 0 1
1 1 0

if present state is 0 and next state is 1 than T flip flop input must be 1.

if present state is 1 and next state is 0 than T flip flop input must be 1.

if present state is 1 and next state is 1 than T flip flop input must be 0.

if present state is 0 and next state is 0 than T flip flop input must be 0.

From state table find the inputs of T in form of Present state.

T2 = Q2'Q1Q0 + Q2Q1'Q0'

T1 = Q2'Q1'Q0 + Q2Q1Q0'

T0 = Q2'Q1'Q0' + Q2Q1Q0

Find the circuit diagram as below:

Add a comment
Know the answer?
Add Answer to:
Write Verilog code for a counter with T flip‐flops that goes through the following binary repeated sequence: 0, 1, 3, 7, 6, 4.
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT