diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-07-26 16:11:28 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-07-26 16:11:28 +0200 |
commit | 97a59851a6c411ccb06162d4b31725bf89262378 (patch) | |
tree | 74cba570ab858657b6fa524cdc9fa45b0493c4be /kernel/consteval.h | |
parent | a84cb0493566f8f5eb610c6d7b67dda85b0f227b (diff) | |
download | yosys-97a59851a6c411ccb06162d4b31725bf89262378.tar.gz yosys-97a59851a6c411ccb06162d4b31725bf89262378.tar.bz2 yosys-97a59851a6c411ccb06162d4b31725bf89262378.zip |
Added RTLIL::Cell::has(portname)
Diffstat (limited to 'kernel/consteval.h')
-rw-r--r-- | kernel/consteval.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/consteval.h b/kernel/consteval.h index 4050d2dcf..3a5c5347c 100644 --- a/kernel/consteval.h +++ b/kernel/consteval.h @@ -87,21 +87,21 @@ struct ConstEval { RTLIL::SigSpec sig_a, sig_b, sig_s, sig_y; - assert(cell->connections().count("\\Y") > 0); + assert(cell->has("\\Y")); sig_y = values_map(assign_map(cell->get("\\Y"))); if (sig_y.is_fully_const()) return true; - if (cell->connections().count("\\S") > 0) { + if (cell->has("\\S")) { sig_s = cell->get("\\S"); if (!eval(sig_s, undef, cell)) return false; } - if (cell->connections().count("\\A") > 0) + if (cell->has("\\A")) sig_a = cell->get("\\A"); - if (cell->connections().count("\\B") > 0) + if (cell->has("\\B")) sig_b = cell->get("\\B"); if (cell->type == "$mux" || cell->type == "$pmux" || cell->type == "$safe_pmux" || cell->type == "$_MUX_") |