new project for tdc, copied code from blinky and changed structure

This commit is contained in:
2020-10-22 21:28:17 -05:00
parent ccdfe6da64
commit 1198429d53
4 changed files with 117 additions and 0 deletions

17
tdc/rtl/top.v Normal file
View File

@@ -0,0 +1,17 @@
`default_nettype none
module top(i_clk, o_led, lcol1);
parameter WIDTH = 24;
input wire i_clk;
output wire o_led;
output wire lcol1;
reg [WIDTH-1:0] counter;
always @(posedge i_clk)
counter <= counter + 1'b1;
assign o_led = counter[WIDTH-1];
assign lcol1 = 1'b0;
endmodule