Re:Verilog to Routing
by mathisfun123 on Tuesday September 26, 2023 @10:42PM
(#37669253)
I feel like no one is understanding me - with how it's currently written (cpp scripting) nothing is reusable without copy-paste and then compile.
Re:Verilog to Routing
by ZirconiumX on Thursday September 28, 2023 @08:22PM
(#37697783)
Sorry, I really don't see where the issue is.
Nothing forces you to use C++ scripting here; Yosys has a shell that you can enter commands in, and it takes via `-s` a file of commands; a script.
That the default scripts are written in C++ to not need dependencies does not mean you also need to write your scripts in C++.
There is a scripting engine in yosys called yosys script. It doesn't support logic but if you just want to run some commands it works fine.
There is also some basic TCL script in yosys but I have never used it. So I can't really comment how well it works.
In addition a pass doesn't have to be inside the yosys tree for it to work. You can load any module at runtime. Sure this is not as quick to do then having a full scripting interface but you can be up and running within a few minutes.