mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-13 17:36:16 +00:00
Merge pull request #3443 from YosysHQ/micko/resetall_undefineall
resetall does not affect text defines, but undefineall does
This commit is contained in:
commit
0b0e01e211
1 changed files with 5 additions and 0 deletions
|
@ -961,6 +961,11 @@ frontend_verilog_preproc(std::istream &f,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tok == "`resetall") {
|
if (tok == "`resetall") {
|
||||||
|
default_nettype_wire = true;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (tok == "`undefineall" && sv_mode) {
|
||||||
defines.clear();
|
defines.clear();
|
||||||
global_defines_cache.clear();
|
global_defines_cache.clear();
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue