forked from tanchou/Verilog
- Created tangnano20k.cst to define I/O locations for clock, button, and LEDs. - Implemented top.v module to instantiate the counter with clock and button inputs, and 4-bit count output.
13 lines
183 B
Verilog
13 lines
183 B
Verilog
module top (
|
|
input wire clk,
|
|
input wire btn1,
|
|
output wire [3:0] count
|
|
);
|
|
|
|
counter uut (
|
|
.clk(clk),
|
|
.btn1(btn1),
|
|
.count(count)
|
|
);
|
|
|
|
endmodule |