N
Neo
Guest
HI,
Is there any scope for race occurring in doing hierarchical access? I
ask this as I am seeing the foll happen-
always(poseddge clk, negedge rst)
if (rst)
---
---
else
if(wr and acs)
r_data <= p_data;
----
----
end
In above I see that r_data is changing simultaneously with 'wr' going
high. and it erroneously senses wr high for 2 cycles even though it is
high for one cycle only. I suspect this might be due to race as all
the signals in the above always blk including clk and rst are
hierarchically referenced from a module but a single module. Is this
due to race?
If so how do I overcome this, register the values?
Thanks,
Neo
Is there any scope for race occurring in doing hierarchical access? I
ask this as I am seeing the foll happen-
always(poseddge clk, negedge rst)
if (rst)
---
---
else
if(wr and acs)
r_data <= p_data;
----
----
end
In above I see that r_data is changing simultaneously with 'wr' going
high. and it erroneously senses wr high for 2 cycles even though it is
high for one cycle only. I suspect this might be due to race as all
the signals in the above always blk including clk and rst are
hierarchically referenced from a module but a single module. Is this
due to race?
If so how do I overcome this, register the values?
Thanks,
Neo