mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-15 03:35:40 +00:00
rtlil: set Module* on inner-process AttrObjects at construction
This commit is contained in:
parent
f1edb571f2
commit
ca632e82c4
4 changed files with 13 additions and 0 deletions
|
|
@ -196,15 +196,18 @@ struct RomWorker
|
|||
if (abits == GetSize(sw->signal)) {
|
||||
sw->signal = SigSpec();
|
||||
RTLIL::CaseRule *cs = new RTLIL::CaseRule;
|
||||
cs->module = module;
|
||||
cs->actions.push_back(SigSig(lhs, rdata));
|
||||
sw->cases.push_back(cs);
|
||||
} else {
|
||||
sw->signal = sw->signal.extract_end(abits);
|
||||
RTLIL::CaseRule *cs = new RTLIL::CaseRule;
|
||||
cs->module = module;
|
||||
cs->compare.push_back(Const(State::S0, GetSize(sw->signal)));
|
||||
cs->actions.push_back(SigSig(lhs, rdata));
|
||||
sw->cases.push_back(cs);
|
||||
RTLIL::CaseRule *cs2 = new RTLIL::CaseRule;
|
||||
cs2->module = module;
|
||||
cs2->actions.push_back(SigSig(lhs, default_val));
|
||||
sw->cases.push_back(cs2);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue