EmbDev.net

Forum: FPGA, VHDL & Verilog Non repetitive delay in Process block


Author: Rejoy Mathews (Company: Lab Instructor) (rejoymathews32)
Posted on:

Rate this post
0 useful
not useful
process
-- Initial non repetitive (wait for 100ns);
    begin
        clk <= not clk;
        wait for 10ns;
end process;

Is there a way I can insert a delay within a process block that is 
implemented only once and then is not repeated. I am looking to insert 
the delay as mentioned in the comment above (  -- Initial non repetitive 
wait for 100ns;).

Is there any other way I can do this, if it is not possible to be 
inserted within the process block?

Thanks in advance.

Author: -gb- (Guest)
Posted on:

Rate this post
1 useful
not useful
Use something like

if firstrun = '1' then
 wait for $time;
 firstrun <= '0';
else
 clk <= not clk;
 wait for 10ns;
end if;

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig