diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2019-08-18 11:47:46 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2019-08-18 11:47:46 +0200 |
commit | 4a32e29445f65edd1726808a7353a9d0e2560c00 (patch) | |
tree | 179544dd193fe72b3658269cb22a6eae66bee8a1 /passes/techmap/lut2mux.cc | |
parent | 5f561bdcb1d562d6f975b4a27beca1b8b7af908f (diff) | |
parent | 98a54353b7d893752d856b3726853d4921c6aa1f (diff) | |
download | yosys-4a32e29445f65edd1726808a7353a9d0e2560c00.tar.gz yosys-4a32e29445f65edd1726808a7353a9d0e2560c00.tar.bz2 yosys-4a32e29445f65edd1726808a7353a9d0e2560c00.zip |
Merge remote-tracking branch 'upstream/master' into anlogic_fixes
Diffstat (limited to 'passes/techmap/lut2mux.cc')
-rw-r--r-- | passes/techmap/lut2mux.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/passes/techmap/lut2mux.cc b/passes/techmap/lut2mux.cc index a4ed79550..c6618fc9d 100644 --- a/passes/techmap/lut2mux.cc +++ b/passes/techmap/lut2mux.cc @@ -25,9 +25,9 @@ PRIVATE_NAMESPACE_BEGIN int lut2mux(Cell *cell) { - SigSpec sig_a = cell->getPort("\\A"); - SigSpec sig_y = cell->getPort("\\Y"); - Const lut = cell->getParam("\\LUT"); + SigSpec sig_a = cell->getPort(ID::A); + SigSpec sig_y = cell->getPort(ID::Y); + Const lut = cell->getParam(ID(LUT)); int count = 1; if (GetSize(sig_a) == 1) @@ -81,7 +81,7 @@ struct Lut2muxPass : public Pass { for (auto module : design->selected_modules()) for (auto cell : module->selected_cells()) { - if (cell->type == "$lut") { + if (cell->type == ID($lut)) { IdString cell_name = cell->name; int count = lut2mux(cell); log("Converted %s.%s to %d MUX cells.\n", log_id(module), log_id(cell_name), count); |