1
0
mirror of https://github.com/olofk/serv.git synced 2026-05-03 06:48:37 +00:00

Add reset input for Arty A7 target

This commit is contained in:
Olof Kindgren
2022-10-16 20:04:56 +02:00
parent 6ad60f69a2
commit 7c004e8f7b
4 changed files with 18 additions and 2 deletions

View File

@@ -2,6 +2,9 @@
module servix
(
input wire i_clk,
`ifdef WITH_RESET
input wire i_rst_n,
`endif
output wire q);
parameter frequency = 32;
@@ -16,6 +19,11 @@ module servix
#(.frequency (frequency))
clock_gen
(.i_clk (i_clk),
`ifdef WITH_RESET
.i_rst (!i_rst_n),
`else
.i_rst (1'b0),
`endif
.o_clk (wb_clk),
.o_rst (wb_rst));