Changed LEVEL resets to be edge triggered anyway
authorAndrew Zonenberg <azonenberg@drawersteak.com>
Tue, 8 Aug 2017 03:33:08 +0000 (20:33 -0700)
committerAndrew Zonenberg <azonenberg@drawersteak.com>
Mon, 14 Aug 2017 17:45:40 +0000 (10:45 -0700)
techlibs/greenpak4/cells_sim_digital.v

index eb18a20b6ff9817de6517b44c71f9ea55251ab06..fc481975c0faddd884c4975b5f4b632f70b6ea02 100644 (file)
@@ -86,7 +86,7 @@ module GP_COUNT14(input CLK, input wire RST, output reg OUT);
                        end
 
                        "LEVEL": begin
-                               always @(posedge CLK or RST) begin
+                               always @(posedge CLK or posedge RST) begin
                                        count           <= count - 1'd1;
                                        if(count == 0)
                                                count   <= COUNT_TO;
@@ -204,7 +204,7 @@ module GP_COUNT14_ADV(input CLK, input RST, output reg OUT,
                        end
 
                        "LEVEL": begin
-                               always @(posedge CLK or RST) begin
+                               always @(posedge CLK or posedge RST) begin
 
                                        //Main counter
                                        if(KEEP) begin
@@ -339,7 +339,7 @@ module GP_COUNT8_ADV(input CLK, input RST, output reg OUT,
                        end
 
                        "LEVEL": begin
-                               always @(posedge CLK or RST) begin
+                               always @(posedge CLK or posedge RST) begin
 
                                        //Main counter
                                        if(KEEP) begin
@@ -439,7 +439,7 @@ module GP_COUNT8(
                        end
 
                        "LEVEL": begin
-                               always @(posedge CLK or RST) begin
+                               always @(posedge CLK or posedge RST) begin
                                        count           <= count - 1'd1;
                                        if(count == 0)
                                                count   <= COUNT_TO;