Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated PGEN model to have level triggered reset (matches actual hard…
Browse files Browse the repository at this point in the history
…ware behavior
azonenberg committed Aug 15, 2017
1 parent 177683b commit 3c39135
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions techlibs/greenpak4/cells_sim_digital.v
Original file line number Diff line number Diff line change
@@ -741,10 +741,10 @@ module GP_PGEN(input wire nRST, input wire CLK, output reg OUT);
localparam COUNT_MAX = PATTERN_LEN - 1'h1;

reg[3:0] count = 0;
always @(posedge CLK) begin
if(!nRST) begin
count <= COUNT_MAX;
end
always @(posedge CLK, negedge nRST) begin

if(!nRST)
count <= 0;

else begin
count <= count - 1'h1;

0 comments on commit 3c39135

Please sign in to comment.