Added timebase
This commit is contained in:
parent
152b15edae
commit
107d7bb6e7
2
.svlint.toml
Normal file
2
.svlint.toml
Normal file
@ -0,0 +1,2 @@
|
||||
[textrules]
|
||||
header_copyright = false
|
2
ch4/.svlint.toml
Normal file
2
ch4/.svlint.toml
Normal file
@ -0,0 +1,2 @@
|
||||
[textrules]
|
||||
header_copyright = false
|
1
ch4/timebase.sv
Normal file
1
ch4/timebase.sv
Normal file
@ -0,0 +1 @@
|
||||
`timescale 1ns/1ps
|
21
ch4/timebase_tb.sv
Normal file
21
ch4/timebase_tb.sv
Normal file
@ -0,0 +1,21 @@
|
||||
`timescale 1ns/1ps
|
||||
|
||||
module timebase_tb();
|
||||
|
||||
logic clk;
|
||||
logic reset;
|
||||
logic [20:0] count;
|
||||
|
||||
timebase test (clk, reset, count);
|
||||
|
||||
always
|
||||
#5 clk = ~clk;
|
||||
initial
|
||||
clk = 0;
|
||||
|
||||
initial begin
|
||||
reset = 1;
|
||||
#10; reset = 0;
|
||||
end
|
||||
|
||||
endmodule
|
Loading…
x
Reference in New Issue
Block a user