new project for tdc, copied code from blinky and changed structure
This commit is contained in:
17
tdc/rtl/top.v
Normal file
17
tdc/rtl/top.v
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user