diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-04-19 21:09:55 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-04-19 21:09:55 -0700 |
commit | af4652522fd01aaec84664e65d7fe1474c578c49 (patch) | |
tree | b1831952243702bc1b178cf1ae52d4ab23f0f18a /techlibs/ice40/cells_sim.v | |
parent | 59c993e4372df1624b538bd12aee96381c874f6f (diff) | |
download | yosys-af4652522fd01aaec84664e65d7fe1474c578c49.tar.gz yosys-af4652522fd01aaec84664e65d7fe1474c578c49.tar.bz2 yosys-af4652522fd01aaec84664e65d7fe1474c578c49.zip |
ABC_FLOPS -> ABC_MODEL -- only whitebox if ABC_MODEL set
Diffstat (limited to 'techlibs/ice40/cells_sim.v')
-rw-r--r-- | techlibs/ice40/cells_sim.v | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/techlibs/ice40/cells_sim.v b/techlibs/ice40/cells_sim.v index c49b29ab3..a98bc30d9 100644 --- a/techlibs/ice40/cells_sim.v +++ b/techlibs/ice40/cells_sim.v @@ -127,7 +127,10 @@ module SB_LUT4 (output O, input I0, I1, I2, I3); assign O = I0 ? s1[1] : s1[0]; endmodule -(* abc_box_id = 21, whitebox *) +(* abc_box_id = 21 *) +`ifdef ABC_MODEL + (* whitebox *) +`endif module SB_CARRY (output CO, input I0, I1, CI); assign CO = (I0 && I1) || ((I0 || I1) && CI); endmodule @@ -135,11 +138,11 @@ endmodule // Positive Edge SiliconBlue FF Cells (* abc_box_id = 1, abc_flop *) -`ifdef ABC_FLOPS +`ifdef ABC_MODEL (* whitebox *) `endif module SB_DFF ((* abc_flop_q *) output `SB_DFF_REG, input C, (* abc_flop_d *) input D); -`ifndef ABC_FLOPS +`ifndef ABC_MODEL always @(posedge C) Q <= D; `else |