Skip to content

Commit b90be93

Browse files
committed
fix(examples/gamepad): fix the majority of verilator warnings
1 parent 0c646a7 commit b90be93

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/examples/gamepad/project.v

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ module tt_um_vga_example (
1616
input wire rst_n // reset_n - low to reset
1717
);
1818

19+
// Unused outputs assigned to 0.
20+
assign uio_out = 0;
21+
assign uio_oe = 0;
22+
23+
// Suppress unused signals warning
24+
wire _unused_ok = &{ena, ui_in[7], ui_in[4:0], uio_in};
25+
1926
// VGA signals
2027
wire hsync;
2128
wire vsync;
@@ -29,9 +36,6 @@ module tt_um_vga_example (
2936
// Tiny VGA Pmod
3037
assign uo_out = {hsync, B[0], G[0], R[0], vsync, B[1], G[1], R[1]};
3138

32-
// Gamepad Pmod
33-
wire inp_b, inp_y, inp_select, inp_start, inp_up, inp_down, inp_left, inp_right, inp_a, inp_x, inp_l, inp_r;
34-
3539
hvsync_generator vga_sync_gen (
3640
.clk(clk),
3741
.reset(~rst_n),
@@ -42,6 +46,9 @@ module tt_um_vga_example (
4246
.vpos(pix_y)
4347
);
4448

49+
// Gamepad Pmod
50+
wire inp_b, inp_y, inp_select, inp_start, inp_up, inp_down, inp_left, inp_right, inp_a, inp_x, inp_l, inp_r;
51+
4552
gamepad_pmod_single driver (
4653
// Inputs:
4754
.rst_n(rst_n),

0 commit comments

Comments
 (0)