indu15
Junior Member level 3
VHDL clock delay problem
I have 2 processes in my code for example as shown below. If I run the simulation c output is taking place with 1 clock period delay after a = '1'. Can anyone please help me to get the c output when a = '1' without delay?
begin
process1: process(clk)
if rising_edge(clk) then
a <= b;
end process process1;
process2: process(clk, a)
if rising_edge(clk) then
if (a = '1') then
c <= d;
end process process2;
end;
Thanks a lot!
I have 2 processes in my code for example as shown below. If I run the simulation c output is taking place with 1 clock period delay after a = '1'. Can anyone please help me to get the c output when a = '1' without delay?
begin
process1: process(clk)
if rising_edge(clk) then
a <= b;
end process process1;
process2: process(clk, a)
if rising_edge(clk) then
if (a = '1') then
c <= d;
end process process2;
end;
Thanks a lot!