fixed: automatic interactive GUI generation (AutoGUI) for verilog modules in my ...
linear cannon @linear@nya.social
fixed: automatic interactive GUI generation (AutoGUI) for verilog modules in my fledgeling risc-v core's verilog simulator workbench
it introspects the verilator simulation state and automatically puts together a UI using Dear Imgui to represent what's going on and let you fiddle with knobs or replace values
shown in the attached screenshot, you can see a version of my RISC-V CPU running, with windows showing the state of the register file, memory access stage, and register writeback stage. for each, i have them arranged such that the autogui-generated is open, and my hand-written version of the same window is to the right. in a few cases, the handwritten version has more features, like the register file highlighting which registers are being read from and written to. as another example, the decoder, which isn't open in this screenshot, also shows the disassembly of the instruction currently being processed by the decoder. the autogenerated version cannot do that because it does not know that the module is a risc-v instruction decoder.
it works, theoretically, for arbitrary verilog, if you wrap the build system correctly. when i first wrote this back in late 2023 / early 2024, i managed to get picorv32 running under this same framework, with the AutoGUI feature.
it introspects the verilator simulation state and automatically puts together a UI using Dear Imgui to represent what's going on and let you fiddle with knobs or replace values
shown in the attached screenshot, you can see a version of my RISC-V CPU running, with windows showing the state of the register file, memory access stage, and register writeback stage. for each, i have them arranged such that the autogui-generated is open, and my hand-written version of the same window is to the right. in a few cases, the handwritten version has more features, like the register file highlighting which registers are being read from and written to. as another example, the decoder, which isn't open in this screenshot, also shows the disassembly of the instruction currently being processed by the decoder. the autogenerated version cannot do that because it does not know that the module is a risc-v instruction decoder.
it works, theoretically, for arbitrary verilog, if you wrap the build system correctly. when i first wrote this back in late 2023 / early 2024, i managed to get picorv32 running under this same framework, with the AutoGUI feature.