hmms
Newbie level 3
- Joined
- Jul 10, 2009
- Messages
- 3
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- vasai
- Activity points
- 1,301
I want to replace the blocking statements with non-blocking staements in the following code without changing the functionality of the code .
I am newbie at verilog. can someone please guide me on how to go ahead with this problem?
Thanks a lot!
I am newbie at verilog. can someone please guide me on how to go ahead with this problem?
Code:
module q4(out ,in,clock,reset)
output out ;
input in,clock,reset ;
reg out;
reg[7:0] data;
always @ (negedge reset of posedge clock) begin
if (~reset) data = 8b'1111 1111;
else begin
data = data << 1;
data[0] = in;
if(data == 8'b0111 1110) out = 1; else
out = 0; end
end
Thanks a lot!