Added GP_LFOSC cell
authorAndrew Zonenberg <azonenberg@drawersteak.com>
Sat, 26 Mar 2016 20:42:53 +0000 (13:42 -0700)
committerAndrew Zonenberg <azonenberg@drawersteak.com>
Sat, 26 Mar 2016 20:42:53 +0000 (13:42 -0700)
techlibs/greenpak4/cells_sim.v

index 54e5a423c4e06e8710ebd0f3cdf7dc727c351e19..249ea286c805b604b7a90217258ca87c9c1132fe 100644 (file)
@@ -63,3 +63,20 @@ module GP_VSS(output OUT);
        assign OUT = 0;
 endmodule
 
+module GP_LFOSC(input PWRDN, output reg CLKOUT);
+       parameter PWRDN_EN = 0;
+       parameter AUTO_ON = 0;
+       
+       initial CLKOUT = 0;
+       
+       always begin
+               if(PWRDN)
+                       clkout = 0;
+               else begin
+                       //half period of 1730 Hz
+                       #289017;
+                       clkout = ~clkout;
+               end
+       end
+       
+endmodule