简体   繁体   中英

Sytem Verilog Testbench: Apply initial time offset to clock signal

If my clock signal toggles every 40ns but I want it to start toggling only after a specific delay, let's say 15ns, how can I do so using verilog testbench?

在此处输入图片说明

initial begin
    clock = 0;
    #15ns;
    forever #40ns clock = ~clock;
end

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM