Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
7 years ago

delay a signal by several clk cycles in verilog

Hi,

Is there anyone knows an easier way to delay a signal by several clk cycles in verilog

I was trying to use repeat as below, however, it only works when I run RTL simulation, it will not work when I run gate level simulation.

data_out <= repeat (15) @(posedge clk ) data;

Thanks!!

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Hi,

    Is there anyone knows an easier way to delay a signal by several clk cycles in verilog

    I was trying to use repeat as below, however, it only works when I run RTL simulation, it will not work when I run gate level simulation.

    data_out <= repeat (15) @(posedge clk ) data;

    Thanks!!

    --- Quote End ---

    It's called a SHIFT REGISTER. Google: shift register verilog code