Jun 4, 2015 #1 P Ponmalar21 Newbie level 4 Joined Dec 18, 2014 Messages 5 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 29 How to generate random delay in the VHDL code??
Jun 4, 2015 #2 U ultimate_kc Newbie level 6 Joined May 20, 2015 Messages 11 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 68 Ponmalar21 said: How to generate random delay in the VHDL code?? Click to expand... First create a signal (for example - delay) then pass values to this delay in process or where ever u need to pass Code VHDL - [expand]1 2 3 4 5 6 7 signal delay; delay <= "011" if delay /= "00" then delay <= delay - 1; else delay <= "111"; end if; Last edited by a moderator: Jun 4, 2015
Ponmalar21 said: How to generate random delay in the VHDL code?? Click to expand... First create a signal (for example - delay) then pass values to this delay in process or where ever u need to pass Code VHDL - [expand]1 2 3 4 5 6 7 signal delay; delay <= "011" if delay /= "00" then delay <= delay - 1; else delay <= "111"; end if;
Jun 4, 2015 #3 T TrickyDicky Advanced Member level 7 Joined Jun 7, 2010 Messages 7,110 Helped 2,081 Reputation 4,181 Reaction score 2,048 Trophy points 1,393 Activity points 39,769 For synthesis or test bench?