greenpak4: add GP_COUNT{8,14}_ADV cells.
authorwhitequark <whitequark@whitequark.org>
Sun, 10 Jul 2016 14:41:34 +0000 (14:41 +0000)
committerwhitequark <whitequark@whitequark.org>
Sun, 10 Jul 2016 15:46:46 +0000 (15:46 +0000)
techlibs/greenpak4/cells_sim.v

index be8e66c66b551380d26fac73998a5cd45c88d518..67f00f3a40e88c494d63684eacffc78e9e650b26 100644 (file)
@@ -94,6 +94,32 @@ module GP_COUNT14(input CLK, input wire RST, output reg OUT);
 
 endmodule
 
+module GP_COUNT8_ADV(input CLK, input RST, output reg OUT,
+                     input UP, input KEEP);
+
+       parameter RESET_MODE    = "RISING";
+       parameter RESET_VALUE   = "ZERO";
+
+       parameter COUNT_TO              = 8'h1;
+       parameter CLKIN_DIVIDE  = 1;
+
+       //more complex hard IP blocks are not supported for simulation yet
+
+endmodule
+
+module GP_COUNT14_ADV(input CLK, input RST, output reg OUT,
+                      input UP, input KEEP);
+
+       parameter RESET_MODE    = "RISING";
+       parameter RESET_VALUE   = "ZERO";
+
+       parameter COUNT_TO              = 14'h1;
+       parameter CLKIN_DIVIDE  = 1;
+
+       //more complex hard IP blocks are not supported for simulation yet
+
+endmodule
+
 module GP_DELAY(input IN, output reg OUT);
        
        parameter DELAY_STEPS = 1;