diff options
author | Clifford Wolf <clifford@clifford.at> | 2019-08-15 22:56:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-15 22:56:32 +0200 |
commit | d16178f233c6f89fe591d347508f71995b84ec82 (patch) | |
tree | 0c41cbe0ee18d5af63e5d8ff4736d85e1c642fb5 /passes/techmap/lut2mux.cc | |
parent | d8a2aaa46379df7a07f4b776b7f9981b04999215 (diff) | |
parent | 6cd8cace0c1d2a9f7b1f1cd56a223c38a5ea799a (diff) | |
download | yosys-d16178f233c6f89fe591d347508f71995b84ec82.tar.gz yosys-d16178f233c6f89fe591d347508f71995b84ec82.tar.bz2 yosys-d16178f233c6f89fe591d347508f71995b84ec82.zip |
Merge pull request #1299 from YosysHQ/eddie/cleanup2
More cleanup, more use of ID() inside passes/techmap
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..6877a75e2 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); |