mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-14 18:06:16 +00:00
Add SB_LUT4 to box library
This commit is contained in:
parent
7980118d74
commit
743c164eee
3 changed files with 16 additions and 0 deletions
|
@ -1,6 +1,13 @@
|
||||||
|
# From https://github.com/cliffordwolf/icestorm/blob/81c33a3/icefuzz/timings_hx8k.txt
|
||||||
|
|
||||||
# NB: Inputs/Outputs must be ordered alphabetically
|
# NB: Inputs/Outputs must be ordered alphabetically
|
||||||
|
|
||||||
# Inputs: CI I0 I1
|
# Inputs: CI I0 I1
|
||||||
# Outputs: CO
|
# Outputs: CO
|
||||||
SB_CARRY 1 1 3 1
|
SB_CARRY 1 1 3 1
|
||||||
126 259 231
|
126 259 231
|
||||||
|
|
||||||
|
# Inputs: I0 I1 I2 I3
|
||||||
|
# Outputs: O
|
||||||
|
SB_LUT4 2 1 4 1
|
||||||
|
316 379 400 449
|
||||||
|
|
|
@ -3,3 +3,10 @@ module SB_CARRY (output CO, input CI, I0, I1);
|
||||||
assign CO = (I0 && I1) || ((I0 || I1) && CI);
|
assign CO = (I0 && I1) || ((I0 || I1) && CI);
|
||||||
endmodule
|
endmodule
|
||||||
|
|
||||||
|
(* abc_box_id = 2 *)
|
||||||
|
module SB_LUT4 (output O, input I0, I1, I2, I3);
|
||||||
|
parameter [15:0] LUT_INIT = 0;
|
||||||
|
// Indicate this is a black-box
|
||||||
|
assign O = 1'b0;
|
||||||
|
endmodule
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# From https://github.com/cliffordwolf/icestorm/blob/81c33a3/icefuzz/timings_hx8k.txt
|
||||||
|
|
||||||
1 1 316
|
1 1 316
|
||||||
2 1 316 379
|
2 1 316 379
|
||||||
3 1 316 379 400
|
3 1 316 379 400
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue