Added timebase

This commit is contained in:
xeovalyte 2025-02-10 14:29:25 +01:00
parent 152b15edae
commit 107d7bb6e7
Signed by: xeovalyte
SSH Key Fingerprint: SHA256:kSQDrQDmKzljJzfGYcd3m9RqHi4h8rSwkZ3sQ9kBURo
4 changed files with 26 additions and 0 deletions

2
.svlint.toml Normal file
View File

@ -0,0 +1,2 @@
[textrules]
header_copyright = false

2
ch4/.svlint.toml Normal file
View File

@ -0,0 +1,2 @@
[textrules]
header_copyright = false

1
ch4/timebase.sv Normal file
View File

@ -0,0 +1 @@
`timescale 1ns/1ps

21
ch4/timebase_tb.sv Normal file
View 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