Added GP_COUNT8/GP_COUNT14 cells
authorAndrew Zonenberg <azonenberg@drawersteak.com>
Sun, 27 Mar 2016 06:29:02 +0000 (23:29 -0700)
committerAndrew Zonenberg <azonenberg@drawersteak.com>
Sun, 27 Mar 2016 06:29:02 +0000 (23:29 -0700)
techlibs/greenpak4/cells_sim.v

index a4094f06d863b4e8f73d25c0212c02e7be379104..6b5100f7580fae977a2c0eb910128451efa2c0eb 100644 (file)
@@ -82,3 +82,25 @@ module GP_LFOSC(input PWRDN, output reg CLKOUT);
        end
        
 endmodule
+
+module GP_COUNT8(input CLK, input wire RST, output reg OUT);
+
+       parameter RESET_MODE    = "RISING";     
+       
+       parameter COUNT_TO              = 8'h1;
+       parameter CLKIN_DIVIDE  = 1;
+       
+       //more complex hard IP blocks are not supported for simulation yet
+
+endmodule
+
+module GP_COUNT14(input CLK, input wire RST, output reg OUT);
+
+       parameter RESET_MODE    = "RISING";     
+       
+       parameter COUNT_TO              = 14'h1;
+       parameter CLKIN_DIVIDE  = 1;
+       
+       //more complex hard IP blocks are not supported for simulation yet
+
+endmodule