Download HDLForBeginners_Examples/NexysBaseProject/src/rst_gen.sv from SAIFIINDUSTRIES/verilog_data-2: direct link, hf CLI and curl.
- Browser
- Download file 887 Bytes
-
https://huggingface.co/datasets/SAIFIINDUSTRIES/verilog_data-2/resolve/main/HDLForBeginners_Examples/NexysBaseProject/src/rst_gen.sv
- Command line
-
hf download hf://datasets/SAIFIINDUSTRIES/verilog_data-2/HDLForBeginners_Examples/NexysBaseProject/src/rst_gen.sv
-
curl -L -o rst_gen.sv https://huggingface.co/datasets/SAIFIINDUSTRIES/verilog_data-2/resolve/main/HDLForBeginners_Examples/NexysBaseProject/src/rst_gen.sv
887 Bytes
| ////////////////////////////////////////////////////////////////////////////////// | |
| // Company: | |
| // Engineer: | |
| // | |
| // Create Date: 13.11.2021 14:32:12 | |
| // Design Name: | |
| // Module Name: rst_gen | |
| // Project Name: | |
| // Target Devices: | |
| // Tool Versions: | |
| // Description: | |
| // | |
| // Dependencies: | |
| // | |
| // Revision: | |
| // Revision 0.01 - File Created | |
| // Additional Comments: | |
| // | |
| ////////////////////////////////////////////////////////////////////////////////// | |
| module rst_gen( | |
| input clk_in, | |
| input rst_in, | |
| output rst_out | |
| ); | |
| logic [2:0] rst_q; | |
| // Triple Register into clk_in domain | |
| always_ff@(posedge clk_in) begin | |
| rst_q[0] <= rst_in; | |
| rst_q[2:1] <= rst_q[1:0]; | |
| end | |
| // internal reset | |
| // only come out of reset when rst_q is all zeros | |
| assign rst_out = (rst_q == 0) ? 0 : 1; | |
| endmodule | |