Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Verilog module: module test ( output [ 1 : 0 ] Q , input x , input clock, input reset ) ; reg [ 1
Verilog module:
module testoutput : Q input x input clock, input reset;
reg : state;
parameter Sb Sb Sb Sb;
always @ posedge clock, negedge reset
ifreset stateS;
else casestate
S: ifx state ; else state ;
S: ifx state ; else state ;
S: ifx state ; else state ;
S: ifx state ; else state ;
endcase
assign Qstate;
endmodule
Testbench:
module ttest;
reg x; reg clock; reg reset;
wire : Q;
test uut Qxclock,reset;
initial begin
x; clock; reset;
#; reset ;
# ; reset; x;
#; reset;
end
always # clock~clock;
initial # $finish;
endmodule
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