diff options
author | Tim Pambor <tp@osasysteme.de> | 2022-03-27 17:18:13 +0200 |
---|---|---|
committer | Marcelina KoĆcielnicka <mwk@0x04.net> | 2022-03-28 13:33:24 +0200 |
commit | 30bc0d26ea570d8d0a6242ef0c026c261a584676 (patch) | |
tree | 52fa0dd54b53ba0c6e3e494d6e5d0e47e1cbd9a5 /techlibs | |
parent | 62b89bb0d4a33cd67bbc2e6463977bb007c8d414 (diff) | |
download | yosys-30bc0d26ea570d8d0a6242ef0c026c261a584676.tar.gz yosys-30bc0d26ea570d8d0a6242ef0c026c261a584676.tar.bz2 yosys-30bc0d26ea570d8d0a6242ef0c026c261a584676.zip |
gowin: Add oscillator primitives
Diffstat (limited to 'techlibs')
-rw-r--r-- | techlibs/gowin/cells_sim.v | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/techlibs/gowin/cells_sim.v b/techlibs/gowin/cells_sim.v index 64b76139c..736aa0707 100644 --- a/techlibs/gowin/cells_sim.v +++ b/techlibs/gowin/cells_sim.v @@ -1551,3 +1551,37 @@ parameter CLKOUTD3_SRC = "CLKOUT"; // CLKOUT, CLKOUTP parameter DEVICE = "GW1N-1"; // "GW1N-1", "GW1N-4", "GW1N-9", "GW1NR-4", "GW1NR-9", "GW1N-4B", "GW1NR-4B", "GW1NS-2", "GW1NS-2C", "GW1NZ-1", "GW1NSR-2", "GW1NSR-2C", "GW1N-1S", "GW1NSE-2C", "GW1NRF-4B", "GW1N-9C", "GW1NR-9C", "GW1N-4C", "GW1NR-4C" endmodule + +(* blackbox *) +module OSC(OSCOUT); +output OSCOUT; + +parameter FREQ_DIV = 100; +parameter DEVICE = "GW1N-4"; +endmodule + +(* blackbox *) +module OSCZ(OSCOUT, OSCEN); +input OSCEN; + +output OSCOUT; + +parameter FREQ_DIV = 100; +endmodule + +(* blackbox *) +module OSCF(OSCOUT, OSCOUT30M, OSCEN); +input OSCEN; + +output OSCOUT; +output OSCOUT30M; + +parameter FREQ_DIV = 100; +endmodule + +(* blackbox *) +module OSCH(OSCOUT); +output OSCOUT; + +parameter FREQ_DIV = 96; +endmodule |