Question: What is the value in count if input sel = 1 0 after the third rising edge of clock based on the following Verilog code:
What is the value in count if input sel after the third rising edge of clock based on the following Verilog code:
module Stest
input wire clk input wire : sel, output reg out ;
integer count;
always @ posedge clk begin
count count ;
case sel
: out ~out;
: if count begin
out ~out;
count ;
end
: if count begin
out ~out;
count ;
end
: if count begin
out ~out;
count ;
end
default: count ;
endcase
end
endmodule
The answer can be or
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
