mirror of https://github.com/YosysHQ/yosys.git
Updated PGEN model to have level triggered reset (matches actual hardware behavior
This commit is contained in:
parent
e5109847c9
commit
3a404be62a
|
@ -741,10 +741,10 @@ module GP_PGEN(input wire nRST, input wire CLK, output reg OUT);
|
||||||
localparam COUNT_MAX = PATTERN_LEN - 1'h1;
|
localparam COUNT_MAX = PATTERN_LEN - 1'h1;
|
||||||
|
|
||||||
reg[3:0] count = 0;
|
reg[3:0] count = 0;
|
||||||
always @(posedge CLK) begin
|
always @(posedge CLK, negedge nRST) begin
|
||||||
if(!nRST) begin
|
|
||||||
count <= COUNT_MAX;
|
if(!nRST)
|
||||||
end
|
count <= 0;
|
||||||
|
|
||||||
else begin
|
else begin
|
||||||
count <= count - 1'h1;
|
count <= count - 1'h1;
|
||||||
|
|
Loading…
Reference in New Issue