Initial Commit

This commit is contained in:
Byron Lathi
2024-12-26 22:01:11 -08:00
commit 88f39e1b02
25 changed files with 1473 additions and 0 deletions

2
test/src/sources.list Normal file
View File

@@ -0,0 +1,2 @@
test_top.sv
test_module.sv

20
test/src/test_module.sv Normal file
View File

@@ -0,0 +1,20 @@
module test_module (
input i_clk,
input i_rst,
output logic [31:0] o_count
);
logic [31:0] counter;
always_ff @(posedge i_clk) begin
if (i_rst) begin
counter <= '0;
end else begin
counter <= counter + 1;
end
end
assign o_count = counter;
endmodule

19
test/src/test_top.sv Normal file
View File

@@ -0,0 +1,19 @@
module test_top (
input i_clk,
input i_rst,
output o_led
);
logic [31:0] count;
test_module u_test_module(
.i_clk (i_clk),
.i_rst (i_rst),
.o_count (count)
);
assign o_led = count[31];
endmodule