diff options
author | whitequark <whitequark@whitequark.org> | 2020-04-21 01:43:20 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-21 01:43:20 +0000 |
commit | abc8f1fcb65bb99ef4bf6fc6c6aa3126c333c68f (patch) | |
tree | 40ecaa592ffcdc2c8dc5be675436e22c3ee5cfc1 /frontends/rpc/rpc_frontend.cc | |
parent | 38ee59184ca50b37b4adacb957f553391b7769d4 (diff) | |
parent | 41421f5dca3587172c870b548921331398a06c19 (diff) | |
download | yosys-abc8f1fcb65bb99ef4bf6fc6c6aa3126c333c68f.tar.gz yosys-abc8f1fcb65bb99ef4bf6fc6c6aa3126c333c68f.tar.bz2 yosys-abc8f1fcb65bb99ef4bf6fc6c6aa3126c333c68f.zip |
Merge pull request #1961 from whitequark/paramod-original-name
ast, rpc: record original name of $paramod\* as \hdlname attribute
Diffstat (limited to 'frontends/rpc/rpc_frontend.cc')
-rw-r--r-- | frontends/rpc/rpc_frontend.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/frontends/rpc/rpc_frontend.cc b/frontends/rpc/rpc_frontend.cc index a23f7548e..46ee6a733 100644 --- a/frontends/rpc/rpc_frontend.cc +++ b/frontends/rpc/rpc_frontend.cc @@ -217,6 +217,8 @@ struct RpcModule : RTLIL::Module { module.second->name = mangled_name; module.second->design = design; module.second->attributes.erase(ID::top); + if (!module.second->has_attribute(ID::hdlname)) + module.second->set_string_attribute(ID::hdlname, module.first.str()); design->modules_[mangled_name] = module.second; derived_design->modules_.erase(module.first); } |