|  | yosys -import | 
|  | if { [info procs synth_quicklogic] == {} } { plugin -i ql-qlf } | 
|  | yosys -import  ;# ingest plugin commands | 
|  |  | 
|  | read_verilog $::env(DESIGN_TOP).v | 
|  | design -save read | 
|  |  | 
|  | # DFF | 
|  | hierarchy -top my_dff | 
|  | yosys proc | 
|  | equiv_opt -assert -map +/quicklogic/qlf_k4n8/cells_sim.v synth_quicklogic -family qlf_k4n8 -top my_dff | 
|  | design -load postopt | 
|  | yosys cd my_dff | 
|  | stat | 
|  | select -assert-count 1 t:dff | 
|  |  | 
|  | # DFFR (posedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k4n8 -top my_dffr_p | 
|  | yosys cd my_dffr_p | 
|  | stat | 
|  | select -assert-count 1 t:dffr | 
|  | select -assert-count 1 t:\$lut | 
|  |  | 
|  | # DFFR (posedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k4n8 -top my_dffr_p_2 | 
|  | yosys cd my_dffr_p_2 | 
|  | stat | 
|  | select -assert-count 2 t:dffr | 
|  | select -assert-count 1 t:\$lut | 
|  |  | 
|  | # DFFR (negedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k4n8 -top my_dffr_n | 
|  | yosys cd my_dffr_n | 
|  | stat | 
|  | select -assert-count 1 t:dffr | 
|  |  | 
|  | # DFFS (posedge SET) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k4n8 -top my_dffs_p | 
|  | yosys cd my_dffs_p | 
|  | stat | 
|  | select -assert-count 1 t:dffs | 
|  | select -assert-count 1 t:\$lut | 
|  |  | 
|  | # DFFS (negedge SET) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k4n8 -top my_dffs_n | 
|  | yosys cd my_dffs_n | 
|  | stat | 
|  | select -assert-count 1 t:dffs | 
|  |  | 
|  | # DFFN | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k4n8 -top my_dffn | 
|  | yosys cd my_dffn | 
|  | stat | 
|  | select -assert-count 1 t:dffn | 
|  |  | 
|  |  | 
|  | # DFFNR (negedge CLK posedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k4n8 -top my_dffnr_p | 
|  | yosys cd my_dffnr_p | 
|  | stat | 
|  | select -assert-count 1 t:dffnr | 
|  | select -assert-count 1 t:\$lut | 
|  |  | 
|  | # DFFNR (negedge CLK negedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k4n8 -top my_dffnr_n | 
|  | yosys cd my_dffnr_n | 
|  | stat | 
|  | select -assert-count 1 t:dffnr | 
|  |  | 
|  | # DFFNS (negedge CLK posedge SET) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k4n8 -top my_dffns_p | 
|  | yosys cd my_dffns_p | 
|  | stat | 
|  | select -assert-count 1 t:dffns | 
|  | select -assert-count 1 t:\$lut | 
|  |  | 
|  | # DFFS (negedge CLK negedge SET) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k4n8 -top my_dffns_n | 
|  | yosys cd my_dffns_n | 
|  | stat | 
|  | select -assert-count 1 t:dffns | 
|  |  | 
|  | # DFFSR (posedge CLK posedge SET posedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k4n8 -top my_dffsr_ppp | 
|  | yosys cd my_dffsr_ppp | 
|  | stat | 
|  | select -assert-count 1 t:dffsr | 
|  | select -assert-count 2 t:\$lut | 
|  |  | 
|  | # DFFSR (posedge CLK negedge SET posedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k4n8 -top my_dffsr_pnp | 
|  | yosys cd my_dffsr_pnp | 
|  | stat | 
|  | select -assert-count 1 t:dffsr | 
|  | select -assert-count 2 t:\$lut | 
|  |  | 
|  | # DFFSR (posedge CLK posedge SET negedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k4n8 -top my_dffsr_ppn | 
|  | yosys cd my_dffsr_ppn | 
|  | stat | 
|  | select -assert-count 1 t:dffsr | 
|  | select -assert-count 1 t:\$lut | 
|  |  | 
|  | # DFFSR (posedge CLK negedge SET negedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k4n8 -top my_dffsr_pnn | 
|  | yosys cd my_dffsr_pnn | 
|  | stat | 
|  | select -assert-count 1 t:dffsr | 
|  | select -assert-count 1 t:\$lut | 
|  |  | 
|  | # DFFSR (negedge CLK posedge SET posedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k4n8 -top my_dffsr_npp | 
|  | yosys cd my_dffsr_npp | 
|  | stat | 
|  | select -assert-count 1 t:dffnsr | 
|  | select -assert-count 2 t:\$lut | 
|  |  | 
|  | # DFFSR (negedge CLK negedge SET posedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k4n8 -top my_dffsr_nnp | 
|  | yosys cd my_dffsr_nnp | 
|  | stat | 
|  | select -assert-count 1 t:dffnsr | 
|  | select -assert-count 2 t:\$lut | 
|  |  | 
|  | # DFFSR (negedge CLK posedge SET negedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k4n8 -top my_dffsr_npn | 
|  | yosys cd my_dffsr_npn | 
|  | stat | 
|  | select -assert-count 1 t:dffnsr | 
|  | select -assert-count 1 t:\$lut | 
|  |  | 
|  | # DFFSR (negedge CLK negedge SET negedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k4n8 -top my_dffsr_nnn | 
|  | yosys cd my_dffsr_nnn | 
|  | stat | 
|  | select -assert-count 1 t:dffnsr | 
|  | select -assert-count 1 t:\$lut | 
|  |  | 
|  | design -reset | 
|  |  | 
|  | # DFF on qlf_k6n10 device | 
|  | read_verilog $::env(DESIGN_TOP).v | 
|  | design -save read | 
|  |  | 
|  | # DFF | 
|  | hierarchy -top my_dff | 
|  | yosys proc | 
|  | equiv_opt -assert -map +/quicklogic/qlf_k6n10/cells_sim.v synth_quicklogic -family qlf_k6n10 -top my_dff | 
|  | design -load postopt | 
|  | yosys cd my_dff | 
|  | stat | 
|  | select -assert-count 1 t:dff | 
|  |  | 
|  | # DFFR (posedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k6n10 -top my_dffr_p | 
|  | yosys cd my_dffr_p | 
|  | stat | 
|  | select -assert-count 1 t:dffr | 
|  |  | 
|  | # DFFR (posedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k6n10 -top my_dffr_p_2 | 
|  | yosys cd my_dffr_p_2 | 
|  | stat | 
|  | select -assert-count 2 t:dffr | 
|  |  | 
|  | # DFFR (negedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k6n10 -top my_dffr_n | 
|  | yosys cd my_dffr_n | 
|  | stat | 
|  | select -assert-count 1 t:dffr | 
|  | select -assert-count 1 t:\$lut | 
|  |  | 
|  | #DFFRE (posedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k6n10 -top my_dffre_p | 
|  | yosys cd my_dffre_p | 
|  | stat | 
|  | select -assert-count 1 t:dffre | 
|  |  | 
|  | #DFFRE (negedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k6n10 -top my_dffre_n | 
|  | yosys cd my_dffre_n | 
|  | stat | 
|  | select -assert-count 1 t:dffre | 
|  | select -assert-count 1 t:\$lut | 
|  |  | 
|  | # DFFS (posedge SET) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k6n10 -top my_dffs_p | 
|  | yosys cd my_dffs_p | 
|  | stat | 
|  | select -assert-count 1 t:dffs | 
|  |  | 
|  | # DFFS (negedge SET) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k6n10 -top my_dffs_n | 
|  | yosys cd my_dffs_n | 
|  | stat | 
|  | select -assert-count 1 t:dffs | 
|  | select -assert-count 1 t:\$lut | 
|  |  | 
|  | # DFFSE (posedge SET) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k6n10 -top my_dffse_p | 
|  | yosys cd my_dffse_p | 
|  | stat | 
|  | select -assert-count 1 t:dffse | 
|  |  | 
|  | # DFFSE (negedge SET) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k6n10 -top my_dffse_n | 
|  | yosys cd my_dffse_n | 
|  | stat | 
|  | select -assert-count 1 t:dffse | 
|  |  | 
|  | # DFFN | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k6n10 -top my_dffn | 
|  | yosys cd my_dffn | 
|  | stat | 
|  | select -assert-count 1 t:dff | 
|  | select -assert-count 1 t:\$lut | 
|  |  | 
|  | # DFFNR (negedge CLK posedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k6n10 -top my_dffnr_p | 
|  | yosys cd my_dffnr_p | 
|  | stat | 
|  | select -assert-count 1 t:dffr | 
|  | select -assert-count 1 t:\$lut | 
|  |  | 
|  | # DFFNR (negedge CLK negedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k6n10 -top my_dffnr_n | 
|  | yosys cd my_dffnr_n | 
|  | stat | 
|  | select -assert-count 1 t:dffr | 
|  | select -assert-count 2 t:\$lut | 
|  |  | 
|  | # DFFNS (negedge CLK posedge SET) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k6n10 -top my_dffns_p | 
|  | yosys cd my_dffns_p | 
|  | stat | 
|  | select -assert-count 1 t:dffs | 
|  | select -assert-count 1 t:\$lut | 
|  |  | 
|  | # DFFS (negedge CLK negedge SET) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k6n10 -top my_dffns_n | 
|  | yosys cd my_dffns_n | 
|  | stat | 
|  | select -assert-count 1 t:dffs | 
|  | select -assert-count 2 t:\$lut | 
|  |  | 
|  | # DFFSR (posedge CLK posedge SET posedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k6n10 -top my_dffsr_ppp | 
|  | yosys cd my_dffsr_ppp | 
|  | stat | 
|  | select -assert-count 1 t:dffsr | 
|  | select -assert-count 1 t:\$lut | 
|  |  | 
|  | # DFFSR (posedge CLK negedge SET posedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k6n10 -top my_dffsr_pnp | 
|  | yosys cd my_dffsr_pnp | 
|  | stat | 
|  | select -assert-count 1 t:dffsr | 
|  | select -assert-count 1 t:\$lut | 
|  |  | 
|  | # DFFSR (posedge CLK posedge SET negedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k6n10 -top my_dffsr_ppn | 
|  | yosys cd my_dffsr_ppn | 
|  | stat | 
|  | select -assert-count 1 t:dffsr | 
|  | select -assert-count 2 t:\$lut | 
|  |  | 
|  | # DFFSR (posedge CLK negedge SET negedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k6n10 -top my_dffsr_pnn | 
|  | yosys cd my_dffsr_pnn | 
|  | stat | 
|  | select -assert-count 1 t:dffsr | 
|  | select -assert-count 2 t:\$lut | 
|  |  | 
|  | # DFFSR (negedge CLK posedge SET posedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k6n10 -top my_dffsr_npp | 
|  | yosys cd my_dffsr_npp | 
|  | stat | 
|  | select -assert-count 1 t:dffsr | 
|  | select -assert-count 2 t:\$lut | 
|  |  | 
|  | # DFFSR (negedge CLK negedge SET posedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k6n10 -top my_dffsr_nnp | 
|  | yosys cd my_dffsr_nnp | 
|  | stat | 
|  | select -assert-count 1 t:dffsr | 
|  | select -assert-count 2 t:\$lut | 
|  |  | 
|  | # DFFSR (negedge CLK posedge SET negedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k6n10 -top my_dffsr_npn | 
|  | yosys cd my_dffsr_npn | 
|  | stat | 
|  | select -assert-count 1 t:dffsr | 
|  | select -assert-count 3 t:\$lut | 
|  |  | 
|  | # DFFSR (negedge CLK negedge SET negedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k6n10 -top my_dffsr_nnn | 
|  | yosys cd my_dffsr_nnn | 
|  | stat | 
|  | select -assert-count 1 t:dffsr | 
|  | select -assert-count 3 t:\$lut | 
|  |  | 
|  | # DFFSRE (posedge CLK posedge SET posedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k6n10 -top my_dffsre_ppp | 
|  | yosys cd my_dffsre_ppp | 
|  | stat | 
|  | select -assert-count 1 t:dffsre | 
|  | select -assert-count 1 t:\$lut | 
|  |  | 
|  | # DFFSRE (posedge CLK negedge SET posedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k6n10 -top my_dffsre_pnp | 
|  | yosys cd my_dffsre_pnp | 
|  | stat | 
|  | select -assert-count 1 t:dffsre | 
|  | select -assert-count 1 t:\$lut | 
|  |  | 
|  | # DFFSRE (posedge CLK posedge SET negedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k6n10 -top my_dffsre_ppn | 
|  | yosys cd my_dffsre_ppn | 
|  | stat | 
|  | select -assert-count 1 t:dffsre | 
|  | select -assert-count 2 t:\$lut | 
|  |  | 
|  | # DFFSRE (posedge CLK negedge SET negedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k6n10 -top my_dffsre_pnn | 
|  | yosys cd my_dffsre_pnn | 
|  | stat | 
|  | select -assert-count 1 t:dffsre | 
|  | select -assert-count 2 t:\$lut | 
|  |  | 
|  | # DFFSRE (negedge CLK posedge SET posedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k6n10 -top my_dffsre_npp | 
|  | yosys cd my_dffsre_npp | 
|  | stat | 
|  | select -assert-count 1 t:dffsre | 
|  | select -assert-count 2 t:\$lut | 
|  |  | 
|  | # DFFSRE (negedge CLK negedge SET posedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k6n10 -top my_dffsre_nnp | 
|  | yosys cd my_dffsre_nnp | 
|  | stat | 
|  | select -assert-count 1 t:dffsre | 
|  | select -assert-count 2 t:\$lut | 
|  |  | 
|  | # DFFSRE (negedge CLK posedge SET negedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k6n10 -top my_dffsre_npn | 
|  | yosys cd my_dffsre_npn | 
|  | stat | 
|  | select -assert-count 1 t:dffsre | 
|  | select -assert-count 3 t:\$lut | 
|  |  | 
|  | # DFFSRE (negedge CLK negedge SET negedge RST) | 
|  | design -load read | 
|  | synth_quicklogic -family qlf_k6n10 -top my_dffsre_nnn | 
|  | yosys cd my_dffsre_nnn | 
|  | stat | 
|  | select -assert-count 1 t:dffsre | 
|  | select -assert-count 3 t:\$lut | 
|  |  | 
|  | design -reset | 
|  |  | 
|  | # DFF on pp3 device | 
|  | read_verilog $::env(DESIGN_TOP).v | 
|  | design -save read | 
|  |  | 
|  | # DFF | 
|  | hierarchy -top my_dff | 
|  | yosys proc | 
|  | equiv_opt -async2sync -assert -map +/quicklogic/pp3/cells_sim.v synth_quicklogic -family pp3 -top my_dff | 
|  | design -load postopt | 
|  | yosys cd my_dff | 
|  | stat | 
|  | select -assert-count 1 t:dffepc | 
|  | select -assert-count 1 t:ckpad | 
|  | select -assert-count 1 t:inpad | 
|  | select -assert-count 1 t:outpad | 
|  | select -assert-count 1 t:logic_0 | 
|  | select -assert-count 1 t:logic_1 | 
|  |  | 
|  | # DFFE | 
|  | design -load read | 
|  | hierarchy -top my_dffe | 
|  | yosys proc | 
|  | equiv_opt -async2sync -assert -map +/quicklogic/pp3/cells_sim.v synth_quicklogic -family pp3 -top my_dffe | 
|  | design -load postopt | 
|  | yosys cd my_dffe | 
|  | stat | 
|  | select -assert-count 1 t:dffepc | 
|  | select -assert-count 1 t:ckpad | 
|  | select -assert-count 2 t:inpad | 
|  | select -assert-count 1 t:outpad | 
|  | select -assert-count 1 t:logic_0 | 
|  |  | 
|  | # ADFF a.k.a. DFFR_P | 
|  | design -load read | 
|  | hierarchy -top my_dffr_p | 
|  | yosys proc | 
|  | equiv_opt -async2sync -assert -map +/quicklogic/pp3/cells_sim.v synth_quicklogic -family pp3 -top my_dffr_p | 
|  | design -load postopt | 
|  | yosys cd my_dffr_p | 
|  | stat | 
|  | select -assert-count 1 t:dffepc | 
|  | select -assert-count 1 t:logic_0 | 
|  | select -assert-count 1 t:logic_1 | 
|  | select -assert-count 1 t:inpad | 
|  | select -assert-count 1 t:outpad | 
|  | select -assert-count 2 t:ckpad | 
|  |  | 
|  | select -assert-none t:dffepc t:logic_0 t:logic_1 t:inpad t:outpad t:ckpad %% t:* %D | 
|  |  | 
|  | # ADFFN a.k.a. DFFR_N | 
|  | design -load read | 
|  | hierarchy -top my_dffr_n | 
|  | yosys proc | 
|  | equiv_opt -async2sync -assert -map +/quicklogic/pp3/cells_sim.v synth_quicklogic -family pp3 -top my_dffr_n | 
|  | design -load postopt | 
|  | yosys cd my_dffr_n | 
|  | stat | 
|  | select -assert-count 1 t:LUT1 | 
|  | select -assert-count 1 t:dffepc | 
|  | select -assert-count 1 t:logic_0 | 
|  | select -assert-count 1 t:logic_1 | 
|  | select -assert-count 2 t:inpad | 
|  | select -assert-count 1 t:outpad | 
|  | select -assert-count 1 t:ckpad | 
|  |  | 
|  | select -assert-none t:LUT1 t:dffepc t:logic_0 t:logic_1 t:inpad t:outpad t:ckpad %% t:* %D | 
|  |  | 
|  | # DFFS (posedge, sync set) | 
|  | design -load read | 
|  | hierarchy -top my_dffs_clk_p | 
|  | yosys proc | 
|  | equiv_opt -async2sync -assert -map +/quicklogic/pp3/cells_sim.v synth_quicklogic -family pp3 -top my_dffs_clk_p | 
|  | design -load postopt | 
|  | yosys cd my_dffs_clk_p | 
|  | stat | 
|  | select -assert-count 1 t:LUT2 | 
|  | select -assert-count 1 t:dffepc | 
|  | select -assert-count 1 t:logic_0 | 
|  | select -assert-count 1 t:logic_1 | 
|  | select -assert-count 2 t:inpad | 
|  | select -assert-count 1 t:outpad | 
|  | select -assert-count 1 t:ckpad | 
|  |  | 
|  | select -assert-none t:LUT2 t:dffepc t:logic_0 t:logic_1 t:inpad t:outpad t:ckpad %% t:* %D | 
|  |  | 
|  | # DFFS (negedge, sync reset) | 
|  | design -load read | 
|  | hierarchy -top my_dffs_clk_n | 
|  | yosys proc | 
|  | equiv_opt -async2sync -assert -map +/quicklogic/pp3/cells_sim.v synth_quicklogic -family pp3 -top my_dffs_clk_n | 
|  | design -load postopt | 
|  | yosys cd my_dffs_clk_n | 
|  | stat | 
|  | select -assert-count 1 t:LUT1 | 
|  | select -assert-count 1 t:LUT2 | 
|  | select -assert-count 1 t:dffepc | 
|  | select -assert-count 1 t:logic_0 | 
|  | select -assert-count 1 t:logic_1 | 
|  | select -assert-count 3 t:inpad | 
|  | select -assert-count 1 t:outpad | 
|  |  | 
|  | select -assert-none t:LUT1 t:LUT2 t:dffepc t:logic_0 t:logic_1 t:inpad t:outpad t:ckpad %% t:* %D | 
|  |  |