diff options
Diffstat (limited to 'rtl/if_common')
| -rw-r--r-- | rtl/if_common/if_rst_sync.sv | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/rtl/if_common/if_rst_sync.sv b/rtl/if_common/if_rst_sync.sv new file mode 100644 index 0000000..69f1b78 --- /dev/null +++ b/rtl/if_common/if_rst_sync.sv @@ -0,0 +1,13 @@ +//FIXME: peligro +module if_rst_sync +( + input logic clk, + rst_n, + + output logic srst_n +); + + always_ff @(posedge clk or negedge rst_n) + srst_n <= ~rst_n ? 0 : 1; + +endmodule |
