Closed akashlevy closed 1 month ago
I understand why the src_attr is useful, but why is the netlist line interesting?
To be able to track where an instance is instantiated in the netlist without searching? Feels kind of useful to me, e.g., when you see an unexpected cell type on a critical path. But maybe not. Happy to upstream just src_attr
if you prefer.
How does this interact with the ( src = "file.v:245" ) attributes emitted by Yosys? Should we somehow leverage the existing infrastructure for that rather than add new fields?
@QuantamHD It is leveraging the existing infrastructure for src
attribute parsing that you added. So not quite sure what you mean
Ah, my bad @akashlevy. I didn't read it carefully enough
@jjcherry56 wanted to give this a bump. Any feedback?
Going to close this and re-open with just src_attr
soon as discussed.
See title.
src_attr
is thesrc
attribute of an instance in the netlist (useful for tracking an object back to source in pre-synthesis RTL).netlist_line
is the line number for tracking an instance back to its source in the Verilog netlist.Breakdown of work:
Sta
,Network
,ConcreteNetwork
, andSdcNetwork
to includeline
(line number of instantiation)ReportPath
to add the new fields to reportersSearch
to add TCL interface to use the new fieldsNote that I updated the
Sta
API to support getting/setting line numbers onInstance
/ConcreteInstance
. I made specifying the line number optional by providing a default value, but anything implementingNetwork
still needs to implement theline()
function right now...Let me know if you have any suggestions on the right strategy for annotating line numbers on instances.