aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs
diff options
context:
space:
mode:
Diffstat (limited to 'techlibs')
-rw-r--r--techlibs/greenpak4/cells_sim.v17
1 files changed, 17 insertions, 0 deletions
diff --git a/techlibs/greenpak4/cells_sim.v b/techlibs/greenpak4/cells_sim.v
index 54e5a423c..249ea286c 100644
--- a/techlibs/greenpak4/cells_sim.v
+++ b/techlibs/greenpak4/cells_sim.v
@@ -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