sabkumar.r
Junior Member level 2
verilog help - FIFO delay
let us say module1 calls module2 by passing an input i1.
now within module 2, i say
1st case
wire test
assign test=i1
2nd case
reg test
always@(posedge clk)
test=i1
In case2, i find that test is offset by one clock period from i1. Whereas, in case1, it follows i1 exactly (clearly since it is an assign statement and works all the time)
Could someone explain the problem? I would like to have case2 to follow i1 exactly as well.
PS: i1 is obtained from a FIFO output that works on the posedge of the same clk. Any help would be greatly appreciated
let us say module1 calls module2 by passing an input i1.
now within module 2, i say
1st case
wire test
assign test=i1
2nd case
reg test
always@(posedge clk)
test=i1
In case2, i find that test is offset by one clock period from i1. Whereas, in case1, it follows i1 exactly (clearly since it is an assign statement and works all the time)
Could someone explain the problem? I would like to have case2 to follow i1 exactly as well.
PS: i1 is obtained from a FIFO output that works on the posedge of the same clk. Any help would be greatly appreciated
Last edited: