mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-08 20:21:25 +00:00
Replaced more old SigChunk programming patterns
This commit is contained in:
parent
7a608437c6
commit
6aa792c864
17 changed files with 101 additions and 104 deletions
|
@ -177,7 +177,7 @@ struct ShowWorker
|
|||
}
|
||||
|
||||
if (sig.chunks().size() == 1) {
|
||||
const RTLIL::SigChunk &c = sig.chunks()[0];
|
||||
const RTLIL::SigChunk &c = sig.chunks().front();
|
||||
if (c.wire != NULL && design->selected_member(module->name, c.wire->name)) {
|
||||
if (!range_check || c.wire->width == c.width)
|
||||
return stringf("n%d", id2num(c.wire->name));
|
||||
|
@ -200,7 +200,7 @@ struct ShowWorker
|
|||
int pos = sig.size()-1;
|
||||
int idx = single_idx_count++;
|
||||
for (int i = int(sig.chunks().size())-1; i >= 0; i--) {
|
||||
const RTLIL::SigChunk &c = sig.chunks()[i];
|
||||
const RTLIL::SigChunk &c = sig.chunks().at(i);
|
||||
net = gen_signode_simple(c, false);
|
||||
assert(!net.empty());
|
||||
if (driver) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue