Initial commit

This commit is contained in:
Nikolay Puzanov
2021-02-02 19:09:52 +03:00
commit 00b07d114f
14 changed files with 4345 additions and 0 deletions

17
source/pll_lock_reset.sv Normal file
View File

@@ -0,0 +1,17 @@
`timescale 1ns/100ps
`default_nettype none
module pll_lock_reset #(parameter RESET_LEN = 8)
(input wire pll_clock,
input wire pll_lock,
output wire reset);
logic [RESET_LEN:0] rst_sr;
always_ff @(posedge pll_clock, negedge pll_lock)
if (~pll_lock) rst_sr <= '0;
else rst_sr <= { 1'b1, rst_sr[RESET_LEN:1] };
assign reset = ~rst_sr[0];
endmodule // pll_lock_reset