mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-18 20:03:39 +00:00
Added GP_LFOSC cell
This commit is contained in:
parent
af15b92c86
commit
44fd3cd149
1 changed files with 17 additions and 0 deletions
|
@ -63,3 +63,20 @@ module GP_VSS(output OUT);
|
||||||
assign OUT = 0;
|
assign OUT = 0;
|
||||||
endmodule
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue