You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'd be nice if I could just add functions to the platform and pass files through it somehow. Is that not the Done Thing? Should I instead just write standalone Python tools and invoke them? Using TemplatedPlatform?
The text was updated successfully, but these errors were encountered:
I don't really understand the scenario you're describing. Can you add more detail? In general, build outputs are not expected to include any code other than the code contained in the host Python process that produces the build outputs; adding code to build outputs complicates remote builds.
One scenario could be, as part of the build process:
Generate the RTLIL from source (done in TemplatedPlatform.toolchain_prepare)
Run yosys on it to generate an optimized or altered RTLIL
Read the RTLIL from Python and modify some cells (say, via pyosys), writing the result to another RTLIL file.
Run the resulting RTLIL through other platform-specific standalone tools
I guess it makes sense that this shouldn't be done, considering the requirement for remote build capability. In my scenario, since I've already got pyosys, I could run steps 2 and 3 all in toolchain_prepare.
Yes. Altnernatively, you could implement a build tool that is called in the normal way via $PATH, in which case it's irrelevant what language the tool is written in.
It'd be nice if I could just add functions to the platform and pass files through it somehow. Is that not the Done Thing? Should I instead just write standalone Python tools and invoke them? Using
TemplatedPlatform
?The text was updated successfully, but these errors were encountered: