Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[submodule "tools/yosys"]
path = tools/yosys
url = ../../The-OpenROAD-Project/yosys.git
url = https://github.com/YosysHQ/yosys.git
[submodule "tools/OpenROAD"]
path = tools/OpenROAD
url = ../OpenROAD.git
4 changes: 2 additions & 2 deletions flow/platforms/asap7/yoSys/cells_adders_L.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

(* techmap_celltype = "$fa" *)
module _tech_fa (A, B, C, X, Y);
(* abc9_box, lib_whitebox, techmap_celltype = "$fa" *)
module _80_tech_fa (A, B, C, X, Y);
parameter WIDTH = 1;
(* force_downto *)
input [WIDTH-1 : 0] A, B, C;
Expand Down
4 changes: 2 additions & 2 deletions flow/platforms/asap7/yoSys/cells_adders_R.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

(* techmap_celltype = "$fa" *)
module _tech_fa (A, B, C, X, Y);
(* abc9_box, lib_whitebox, techmap_celltype = "$fa" *)
module _80_tech_fa (A, B, C, X, Y);
parameter WIDTH = 1;
(* force_downto *)
input [WIDTH-1 : 0] A, B, C;
Expand Down
4 changes: 2 additions & 2 deletions flow/platforms/asap7/yoSys/cells_adders_SL.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

(* techmap_celltype = "$fa" *)
module _tech_fa (A, B, C, X, Y);
(* abc9_box, lib_whitebox, techmap_celltype = "$fa" *)
module _80_tech_fa (A, B, C, X, Y);
parameter WIDTH = 1;
(* force_downto *)
input [WIDTH-1 : 0] A, B, C;
Expand Down
4 changes: 2 additions & 2 deletions flow/platforms/gf180/cells_adders.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

(* techmap_celltype = "$fa" *)
module _tech_fa (A, B, C, X, Y);
(* abc9_box, lib_whitebox, techmap_celltype = "$fa" *)
module _80_tech_fa (A, B, C, X, Y);
parameter WIDTH = 1;
(* force_downto *)
input [WIDTH-1 : 0] A, B, C;
Expand Down
4 changes: 2 additions & 2 deletions flow/platforms/nangate45/cells_adders.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

(* techmap_celltype = "$fa" *)
module _tech_fa (A, B, C, X, Y);
(* abc9_box, lib_whitebox, techmap_celltype = "$fa" *)
module _80_tech_fa (A, B, C, X, Y);
parameter WIDTH = 1;
(* force_downto *)
input [WIDTH-1 : 0] A, B, C;
Expand Down
4 changes: 2 additions & 2 deletions flow/platforms/sky130hd/cells_adders_hd.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

(* techmap_celltype = "$fa" *)
module _tech_fa (A, B, C, X, Y);
(* abc9_box, lib_whitebox, techmap_celltype = "$fa" *)
module _80_tech_fa (A, B, C, X, Y);
parameter WIDTH = 1;
(* force_downto *)
input [WIDTH-1 : 0] A, B, C;
Expand Down
4 changes: 2 additions & 2 deletions flow/platforms/sky130hs/cells_adders_hs.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

(* techmap_celltype = "$fa" *)
module _tech_fa (A, B, C, X, Y);
(* abc9_box, lib_whitebox, techmap_celltype = "$fa" *)
module _80_tech_fa (A, B, C, X, Y);
parameter WIDTH = 1;
(* force_downto *)
input [WIDTH-1 : 0] A, B, C;
Expand Down
17 changes: 6 additions & 11 deletions flow/scripts/synth.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ set synth_full_args $::env(SYNTH_ARGS)
if {[env_var_exists_and_non_empty SYNTH_OPERATIONS_ARGS]} {
set synth_full_args [concat $synth_full_args $::env(SYNTH_OPERATIONS_ARGS)]
} else {
# Coarse LCU -> Kogge-Stone
set synth_full_args [concat $synth_full_args "-extra-map $::env(FLOW_HOME)/platforms/common/lcu_kogge_stone.v"]

if {[env_var_exists_and_non_empty ADDER_MAP_FILE]} {
# Coarse FA -> PDK FA
set synth_full_args [concat $synth_full_args "-extra-map $::env(ADDER_MAP_FILE)"]
}
}

if {![env_var_equals SYNTH_HIERARCHICAL 1]} {
Expand Down Expand Up @@ -70,17 +76,6 @@ renames -wire
# Optimize the design
opt -purge

# Technology mapping of adders
if {[env_var_exists_and_non_empty ADDER_MAP_FILE]} {
# extract the full adders
extract_fa
# map full adders
techmap -map $::env(ADDER_MAP_FILE)
techmap
# Quick optimization
opt -fast -purge
}

# Technology mapping of latches
if {[env_var_exists_and_non_empty LATCH_MAP_FILE]} {
techmap -map $::env(LATCH_MAP_FILE)
Expand Down