i am receiving a data and then storing it in variable, i need it to hold that value untill new data arrives, the variable happens to hold data for few clock cycles and then vanish. Can somebody help me with it i tried below statements
buf <= dfin when (valid = '1') else buf;
process(clk)
begin
if (rising_edge(CLK)) then
if valid ='1' then
buf <= dfin;
end if;
end if;
end process;
Question
Vishnuk
Hi,
i am receiving a data and then storing it in variable, i need it to hold that value untill new data arrives, the variable happens to hold data for few clock cycles and then vanish. Can somebody help me with it i tried below statements
buf <= dfin when (valid = '1') else buf;
process(clk)
begin
if (rising_edge(CLK)) then
if valid ='1' then
buf <= dfin;
end if;
end if;
end process;
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.