mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-15 13:28:59 +00:00
Ignore $scopeinfo in write_verilog
This commit is contained in:
parent
5ee8bebde4
commit
f31fb95963
|
@ -1871,6 +1871,13 @@ bool dump_cell_expr(std::ostream &f, std::string indent, RTLIL::Cell *cell)
|
||||||
|
|
||||||
void dump_cell(std::ostream &f, std::string indent, RTLIL::Cell *cell)
|
void dump_cell(std::ostream &f, std::string indent, RTLIL::Cell *cell)
|
||||||
{
|
{
|
||||||
|
// To keep the output compatible with other tools we ignore $scopeinfo
|
||||||
|
// cells that exist only to hold metadata. If in the future that metadata
|
||||||
|
// should be exposed as part of the write_verilog output it should be
|
||||||
|
// opt-in and/or represented as something else than a $scopeinfo cell.
|
||||||
|
if (cell->type == ID($scopeinfo))
|
||||||
|
return;
|
||||||
|
|
||||||
// Handled by dump_memory
|
// Handled by dump_memory
|
||||||
if (cell->is_mem_cell())
|
if (cell->is_mem_cell())
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue