Professional Documents
Culture Documents
• Testbench
module tb();
bit clk, reset;
logic in;
logic [2:0] out;
typedef enum { S0=0, S1, S2, S3} states;
FSM u_FSM (.*);
initial begin
forever #5 clk = ~clk;
end
endgroup
initial begin
cg cg_inst = new();
reset = 1'b1;
#10;
reset = 1'b0;
in = 1'b0;
#40;
in = 1'b1;
#60;
$finish();
end
endmodule
© CND
Lab 07: Coverage
• Output Signal Coverage
© CND
Lab 07: Coverage
• State and State Transition Coverage
© CND