mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-10 08:03:26 +00:00
Use more ID::{A,B,Y,blackbox,whitebox}
This commit is contained in:
parent
6cd8cace0c
commit
52355f5185
40 changed files with 889 additions and 887 deletions
|
@ -347,8 +347,8 @@ bool handle_dff(RTLIL::Module *mod, RTLIL::Cell *dff)
|
|||
std::set<RTLIL::Cell*> muxes;
|
||||
mux_drivers.find(sig_d, muxes);
|
||||
for (auto mux : muxes) {
|
||||
RTLIL::SigSpec sig_a = assign_map(mux->getPort(ID(A)));
|
||||
RTLIL::SigSpec sig_b = assign_map(mux->getPort(ID(B)));
|
||||
RTLIL::SigSpec sig_a = assign_map(mux->getPort(ID::A));
|
||||
RTLIL::SigSpec sig_b = assign_map(mux->getPort(ID::B));
|
||||
if (sig_a == sig_q && sig_b.is_fully_const() && (!has_init || val_init == sig_b.as_const())) {
|
||||
mod->connect(sig_q, sig_b);
|
||||
goto delete_dff;
|
||||
|
@ -625,8 +625,8 @@ struct OptRmdffPass : public Pass {
|
|||
}
|
||||
|
||||
if (cell->type.in(ID($mux), ID($pmux))) {
|
||||
if (cell->getPort(ID(A)).size() == cell->getPort(ID(B)).size())
|
||||
mux_drivers.insert(assign_map(cell->getPort(ID(Y))), cell);
|
||||
if (cell->getPort(ID::A).size() == cell->getPort(ID::B).size())
|
||||
mux_drivers.insert(assign_map(cell->getPort(ID::Y)), cell);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue