MyHDL playground
Describe hardware in MyHDL
— Python that models real digital circuits — then simulate it and watch
the waveform. Runs server-side, no installs. Keep a
config_sim(trace=True) + run_sim() and end the
stimulus with StopSimulation. Limits: 16 KB, ~5 s,
no file or system access.
About this tool
MyHDL turns Python into a hardware description language: generators
model concurrent processes (like Verilog's always blocks),
a Signal class carries values between them, and the same
code both simulates (on the Python interpreter, with the full
unittest framework available) and converts to
Verilog or VHDL for synthesis. This playground runs the simulator and
renders the VCD it produces. New to the ideas?
The HDL course and the
MyHDL introduction explain the concepts;
the Verilog playground is the classic-HDL
counterpart.