Skip to content

Commit

Permalink
Merge pull request #79 from muhammadhamza15/mhamza_dev
Browse files Browse the repository at this point in the history
fixing typo in PLL specify block
  • Loading branch information
muhammadhamza15 authored Nov 27, 2024
2 parents 750bfa3 + 71baa6d commit d34c6c8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions models_internal/verilog/PLL.v
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module PLL #(
output LOCK // PLL lock signal
);

localparam FAST_LOCK = 0; // Reduce lock time
localparam FAST_LOCK = 0; // Reduce lock time

localparam real REF_MAX_PERIOD = PLL_MULT_FRAC ? 100000: 200000; //10 MHz or 5 MHz
localparam real REF_MIN_PERIOD = 833.33 ; //1200 MHz
Expand Down Expand Up @@ -208,7 +208,7 @@ localparam FAST_LOCK = 0; // Reduce lock time
end
end


`ifndef SYNTHESIS
`ifdef TIMED_SIM
specparam T1 = 5;
Expand All @@ -222,10 +222,10 @@ localparam FAST_LOCK = 0; // Reduce lock time
(CLK_IN => CLK_OUT_DIV4) = (T1);
(CLK_IN => FAST_CLK) = (T1);

(negedge CLK_IN => (LOCKED +: 0)) = (T1);
(negedge PLL_EN => (LOCKED +: 0)) = (T1);
(posedge CLK_IN => (LOCKED +: 0)) = (T1);
(posedge PLL_EN => (LOCKED +: 0)) = (T1);
(negedge CLK_IN => (LOCK +: 0)) = (T1);
(negedge PLL_EN => (LOCK +: 0)) = (T1);
(posedge CLK_IN => (LOCK +: 0)) = (T1);
(posedge PLL_EN => (LOCK +: 0)) = (T1);

$setuphold (posedge CLK_IN, negedge PLL_EN, T2, notifier);
$setuphold (posedge CLK_IN, posedge PLL_EN, T2, notifier);
Expand Down
12 changes: 6 additions & 6 deletions models_internal/verilog/inc/PLL.inc.v
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

localparam FAST_LOCK = 0; // Reduce lock time
localparam FAST_LOCK = 0; // Reduce lock time

localparam real REF_MAX_PERIOD = PLL_MULT_FRAC ? 100000: 200000; //10 MHz or 5 MHz
localparam real REF_MIN_PERIOD = 833.33 ; //1200 MHz
Expand Down Expand Up @@ -182,7 +182,7 @@ localparam FAST_LOCK = 0; // Reduce lock time
end
end


`ifndef SYNTHESIS
`ifdef TIMED_SIM
specparam T1 = 5;
Expand All @@ -196,10 +196,10 @@ localparam FAST_LOCK = 0; // Reduce lock time
(CLK_IN => CLK_OUT_DIV4) = (T1);
(CLK_IN => FAST_CLK) = (T1);

(negedge CLK_IN => (LOCKED +: 0)) = (T1);
(negedge PLL_EN => (LOCKED +: 0)) = (T1);
(posedge CLK_IN => (LOCKED +: 0)) = (T1);
(posedge PLL_EN => (LOCKED +: 0)) = (T1);
(negedge CLK_IN => (LOCK +: 0)) = (T1);
(negedge PLL_EN => (LOCK +: 0)) = (T1);
(posedge CLK_IN => (LOCK +: 0)) = (T1);
(posedge PLL_EN => (LOCK +: 0)) = (T1);

$setuphold (posedge CLK_IN, negedge PLL_EN, T2, notifier);
$setuphold (posedge CLK_IN, posedge PLL_EN, T2, notifier);
Expand Down

0 comments on commit d34c6c8

Please sign in to comment.