E
ekavirsrikanth@gmail.com
Guest
i have a doubt regarding the coding style in vhdl
........................
if ( reset = '1' ) then
data_temp <= 0;
elsif (clock'event and clock = '1') then
data <= data_temp;
data_out <= data_temp and not data;
end if;
end if;
1. when i am giving clock data temp data is loaded into data at
present clock cycle or at next clock cycle.
2. when i am taking data_out output as given above it is
getting data_out at next clock cycle not at the present clock cycle
where data_temp is high and data is low. why this is happening
i need to get the data_out (high for one clock cycle at the
instant data_temp is high not at the next clock cycle .)
is this problem will be solved during synthesis since i am
facing the problem during simulation but does it behave the same way
during synthesis also. since it is a signal assignment signal " <= " a
minimum of delta delay will be there but will it take the entire clock
cycle delay.........
regards
kil
........................
if ( reset = '1' ) then
data_temp <= 0;
elsif (clock'event and clock = '1') then
data <= data_temp;
data_out <= data_temp and not data;
end if;
end if;
1. when i am giving clock data temp data is loaded into data at
present clock cycle or at next clock cycle.
2. when i am taking data_out output as given above it is
getting data_out at next clock cycle not at the present clock cycle
where data_temp is high and data is low. why this is happening
i need to get the data_out (high for one clock cycle at the
instant data_temp is high not at the next clock cycle .)
is this problem will be solved during synthesis since i am
facing the problem during simulation but does it behave the same way
during synthesis also. since it is a signal assignment signal " <= " a
minimum of delta delay will be there but will it take the entire clock
cycle delay.........
regards
kil