Hello All,
I have a 'general interest' question about the following code..
This is not my code and I am trying to understand it, without running a sim.
P2S_Output: PROCESS (CLK,reset,FRAME)
BEGIN
IF (reset = '0' OR reset = 'L') THEN
Serial_Out <= (others => '0');
elsIF (CLK'EVENT AND CLK = '0') THEN
if (FRAME='1') then
Serial_Out <= p_in;
else
Serial_Out <= "0" & Serial_Out(63 downto 1);
end if;
end if;
DOUT <= Serial_Out(0);
END PROCESS P2S_Output;
1) Is it true that at the end of the process (delta time) DOUT would have 'old/previous' value of 'Serial_Out' ? I am saying this, as new value to Serial_Out will not be assigned, till the process ends.
2) Is this a 'good' way to code? Or is there a better to assign old value of Serial_Out to DOUT?
Thanks
I have a 'general interest' question about the following code..
This is not my code and I am trying to understand it, without running a sim.
P2S_Output: PROCESS (CLK,reset,FRAME)
BEGIN
IF (reset = '0' OR reset = 'L') THEN
Serial_Out <= (others => '0');
elsIF (CLK'EVENT AND CLK = '0') THEN
if (FRAME='1') then
Serial_Out <= p_in;
else
Serial_Out <= "0" & Serial_Out(63 downto 1);
end if;
end if;
DOUT <= Serial_Out(0);
END PROCESS P2S_Output;
1) Is it true that at the end of the process (delta time) DOUT would have 'old/previous' value of 'Serial_Out' ? I am saying this, as new value to Serial_Out will not be assigned, till the process ends.
2) Is this a 'good' way to code? Or is there a better to assign old value of Serial_Out to DOUT?
Thanks