mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-24 16:12:33 +00:00
twine
This commit is contained in:
parent
3d27e83d0f
commit
3424c00cd0
63 changed files with 2635 additions and 503 deletions
|
|
@ -121,8 +121,9 @@ struct BtorWorker
|
|||
{
|
||||
string infostr = obj->name.unescape();
|
||||
if (!srcsym && !print_internal_names && infostr[0] == '$') return "";
|
||||
if (obj->attributes.count(ID::src)) {
|
||||
string src = obj->attributes.at(ID::src).decode_string().c_str();
|
||||
if (obj->has_attribute(ID::src)) {
|
||||
string raw_src = module && module->design ? obj->get_src_attribute(&module->design->src_twines) : std::string();
|
||||
string src = module && module->design ? module->design->resolve_src(raw_src) : raw_src;
|
||||
if (srcsym && infostr[0] == '$') {
|
||||
std::replace(src.begin(), src.end(), ' ', '_');
|
||||
if (srcsymbols.count(src) || module->count_id("\\" + src)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue