aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwhitequark <whitequark@whitequark.org>2020-06-18 16:57:24 +0000
committerGitHub <noreply@github.com>2020-06-18 16:57:24 +0000
commit5439faebf929f303cb9eb2a17f4aa468ddb9af74 (patch)
tree9a9ad6b2cc7b8839c73d57623aab8c65be0a917a
parent2123019ac6da12fa116955ee397183363a6e5eaf (diff)
parent2139a5c21a9a20b6a5c254bd2f7c09ea29fdaf3d (diff)
downloadyosys-5439faebf929f303cb9eb2a17f4aa468ddb9af74.tar.gz
yosys-5439faebf929f303cb9eb2a17f4aa468ddb9af74.tar.bz2
yosys-5439faebf929f303cb9eb2a17f4aa468ddb9af74.zip
Merge pull request #2142 from whitequark/splitnets-hdlname
splitnets: propagate (*hdlname*) and disambiguate via start_offset
-rw-r--r--passes/cmds/splitnets.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/passes/cmds/splitnets.cc b/passes/cmds/splitnets.cc
index 1e7dedd70..de275874f 100644
--- a/passes/cmds/splitnets.cc
+++ b/passes/cmds/splitnets.cc
@@ -59,10 +59,14 @@ struct SplitnetsWorker
new_wire->port_id = wire->port_id ? wire->port_id + offset : 0;
new_wire->port_input = wire->port_input;
new_wire->port_output = wire->port_output;
+ new_wire->start_offset = wire->start_offset + offset;
if (wire->attributes.count(ID::src))
new_wire->attributes[ID::src] = wire->attributes.at(ID::src);
+ if (wire->attributes.count(ID::hdlname))
+ new_wire->attributes[ID::hdlname] = wire->attributes.at(ID::hdlname);
+
if (wire->attributes.count(ID::keep))
new_wire->attributes[ID::keep] = wire->attributes.at(ID::keep);