Answered step by step
Verified Expert Solution
Question
1 Approved Answer
WRITE VERILOG CODE FOR FOLLOWING STATE MACHINE CHART AND following EQUATIONS FROM STATE MACHINE CHART: (2 FLIP FLOPS USED) Q 1 + = Q1Q0X2(X1+X3)+Q1Q0X2 Q
WRITE VERILOG CODE FOR FOLLOWING STATE MACHINE CHART AND following EQUATIONS FROM STATE MACHINE CHART: (2 FLIP FLOPS USED)
Q1+ = Q1Q0X2(X1+X3)+Q1Q0X2
Q0+ = Q1Q0X2+Q1Q0X3X2X1+Q1Q0X1+Q1Q0X2 = Q1Q0X2+ Q1Q0X2 (X1+ X3)
Z1 = Q1Q0X2 + Q1Q0 + Q1Q0= Q1Q0X2 + Q0 +Q1 Note, for first term, next input required
Z2 =
Z3 =
...Include top level module, clk, and submodule for flip flop states...
TOP MODULE EXAMPLE:
module SM (
input X3,
input X2,
input X1,
input PBC,
output Z3,
output Z2,
output Z1,
output q1,
output q0,
output [7:0] SSEG_CA,
output [7:0] SSEG_AN );
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started