Question: Write a test bench in EDA playground to test fully this design as follows: / / Moore FSM module myMoore ( input clk , reset,
Write a "test bench" in EDA playground to test fully this design as follows:
Moore FSM
module myMooreinput clk reset, x
output y;
state encodings
parameter sb sb sb;
state variables
reg : state, nextstate;
state register always block
always @posedge clk posedge reset
if reset state s;
else state nextstate;
next state always block
alwayscomb
case state
s : nextstate x s : s;
s : nextstate x s : s;
s : nextstate x s : s;
default : nextstate s;
endcase
output logic
assign y state s;
endmodule
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
