mirror of
https://github.com/pConst/basic_verilog.git
synced 2025-01-14 06:42:54 +08:00
Added clock jitter
This commit is contained in:
parent
090372196e
commit
fe28e261e6
12
main_tb.sv
12
main_tb.sv
@ -21,11 +21,17 @@ initial begin
|
||||
end
|
||||
|
||||
// external device "asynchronous" clock
|
||||
logic clk33;
|
||||
logic clk33a;
|
||||
initial begin
|
||||
#0 clk33 = 1'b0;
|
||||
#0 clk33a = 1'b0;
|
||||
forever
|
||||
#15.151 clk33 = ~clk33;
|
||||
#7 clk33a = ~clk33a;
|
||||
end
|
||||
|
||||
logic clk33;
|
||||
//assign clk33 = clk33a;
|
||||
always @(*) begin
|
||||
clk33 = #($urandom_range(0, 2000)*10ps) clk33a;
|
||||
end
|
||||
|
||||
logic rst;
|
||||
|
Loading…
x
Reference in New Issue
Block a user