From 44fd3cd149786bc3aaf180af8ec83f790d9cebbe Mon Sep 17 00:00:00 2001 From: Andrew Zonenberg Date: Sat, 26 Mar 2016 13:42:53 -0700 Subject: [PATCH] Added GP_LFOSC cell --- techlibs/greenpak4/cells_sim.v | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 -- 2.30.2