Skip to content

Commit

Permalink
xilinx: Use reset signal corresponding to input polarity in sys_rst
Browse files Browse the repository at this point in the history
  • Loading branch information
Aquaticfuller authored and paulsc96 committed Dec 16, 2024
1 parent 44fb98a commit 9df5811
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions target/xilinx/src/cheshire_top_xilinx.sv
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,11 @@ module cheshire_top_xilinx import cheshire_pkg::*; (
assign vio_boot_mode_sel = '0;
`endif

`ifdef USE_RESET
assign sys_rst = sys_reset | vio_reset;
`elsif USE_RESETN
assign sys_rst = ~sys_resetn | vio_reset;
`endif
assign boot_mode = vio_boot_mode_sel ? vio_boot_mode : boot_mode_i;

//////////////////
Expand Down

0 comments on commit 9df5811

Please sign in to comment.