mirror of
https://github.com/YosysHQ/yosys
synced 2026-06-30 12:38:53 +00:00
Merge pull request #5886 from YosysHQ/nella/fix-signedness-5745
Fix `chparam` values are unsigned when using read_verilog frontend
This commit is contained in:
commit
c99a037c33
5 changed files with 36 additions and 2 deletions
|
|
@ -41,6 +41,7 @@ struct setunset_t
|
|||
if (!RTLIL::SigSpec::parse(sig_value, nullptr, set_value))
|
||||
log_cmd_error("Can't decode value '%s'!\n", set_value);
|
||||
value = sig_value.as_const();
|
||||
value.tag_bare_integer_const(set_value);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue