I am trying to use Yosys to implement post-synthesis manipulation of connections. i.e, I want to manually manipulate the connections between verilog modules after the synthesis pass is done.
I tried investigating the code for a while, and I found out that I need to create a subclass of the "Pass" structure that implements the exact feature I need.
I need to find out how to manipulate the connections themselves. So, i need to know whether or not the "Design" structure is the one that contains the representation of the Verilog design that is used as an input to the tool. In case this is true, where exactly can I find the connections (which variables are used to represent the connections)?
Also, if I need to automate the manipulation of connections, I need to know how the tool assigns specific names to each connection, so that I would be able to implement an automation algorithm that can automatically choose specific connections to remove, or add new connections, based on the names of the existing connections. By the names of connections, I mean the names that are displayed by Yosys in case GraphViz is used to present the design graphically.
Thanks in advance. Best Regards