mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-17 12:45:44 +00:00
WIP
This commit is contained in:
parent
afdae7b87e
commit
c3ffbf6fae
229 changed files with 3902 additions and 3835 deletions
|
|
@ -157,7 +157,7 @@ struct RpcServer {
|
|||
struct RpcModule : RTLIL::Module {
|
||||
std::shared_ptr<RpcServer> server;
|
||||
|
||||
RTLIL::IdString derive(RTLIL::Design *design, const dict<RTLIL::IdString, RTLIL::Const> ¶meters, bool /*mayfail*/) override {
|
||||
TwineRef derive(RTLIL::Design *design, const dict<RTLIL::IdString, RTLIL::Const> ¶meters, bool /*mayfail*/) override {
|
||||
std::string stripped_name = design->twines.str(meta_->name);
|
||||
if (stripped_name.compare(0, 9, "$abstract") == 0)
|
||||
stripped_name = stripped_name.substr(9);
|
||||
|
|
@ -215,7 +215,7 @@ struct RpcModule : RTLIL::Module {
|
|||
log("Importing `%s' as `%s'.\n", derived_design->twines.str(module.first), mangled_name);
|
||||
|
||||
RTLIL::IdString original_name = RTLIL::IdString(derived_design->twines.str(module.first));
|
||||
RTLIL::Module *t = module.second->clone(design, RTLIL::IdString(mangled_name));
|
||||
RTLIL::Module *t = module.second->clone(design, design->twines.add(Twine{mangled_name}));
|
||||
t->attributes.erase(ID::top);
|
||||
if (!t->has_attribute(ID::hdlname))
|
||||
t->set_string_attribute(ID::hdlname, original_name.str());
|
||||
|
|
@ -224,7 +224,7 @@ struct RpcModule : RTLIL::Module {
|
|||
delete derived_design;
|
||||
}
|
||||
|
||||
return derived_name;
|
||||
return design->twines.add(Twine{derived_name});
|
||||
}
|
||||
|
||||
RTLIL::Module *clone() const override {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue