V
V.
Guest
At the top test bench level, I have something like this:
PROCESS(clk, rst)
BEGIN
IF (rst = '1') THEN
mytmp <= '1';
ELSIF RISING_EDGE(clk) THEN
IF (busy = '1') THEN
mytmp <= '0';
END IF;
END IF;
END PROCESS;
At the top level, mytmp signal goes low on the same rising edge as my clock.
--
I then repeat this code within my UUT (still instantiated by same testbench), but now mytmp signal goes low on the following rising edge clock after busy is asserted.
I am sure I am missing something very elementary here, could someone help me out?
Thanks.
PROCESS(clk, rst)
BEGIN
IF (rst = '1') THEN
mytmp <= '1';
ELSIF RISING_EDGE(clk) THEN
IF (busy = '1') THEN
mytmp <= '0';
END IF;
END IF;
END PROCESS;
At the top level, mytmp signal goes low on the same rising edge as my clock.
--
I then repeat this code within my UUT (still instantiated by same testbench), but now mytmp signal goes low on the following rising edge clock after busy is asserted.
I am sure I am missing something very elementary here, could someone help me out?
Thanks.