From: Andrew Zonenberg Date: Sat, 26 Mar 2016 20:42:53 +0000 (-0700) Subject: Added GP_LFOSC cell X-Git-Tag: yosys-0.7~288^2~2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=44fd3cd149786bc3aaf180af8ec83f790d9cebbe;p=yosys.git Added GP_LFOSC cell --- 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