mortbopet / VSRTL

Visual Simulation of Register Transfer Logic
MIT License
88 stars 18 forks source link

Undo/Redo in vsrtl core #11

Closed mortbopet closed 5 years ago

mortbopet commented 5 years ago

Having undo/redo functionality is a perfect companion for the graphical visualization component of vsrtl, which will aid in its use as a testing as well as teaching tool. This will also set the simulator apart from many other

The obvious implementation is to only have undo/redo affect registers and other memory elements, given that the combinational parts of the circuit may be derived from the state of constants and registers.

While the aforementioned implementation only requires a single value to be stored pr. register, this may still have a significant memory impact in large circuits, and as such should be toggleable in a Settings dialog.

mortbopet commented 5 years ago

Added in 25b7696b5440baf5cb12f60b567a349f61b15d74