Digital icon indicating copy to clipboard operation
Digital copied to clipboard

Add Program Clock

Open AsparaGus116 opened this issue 3 years ago • 3 comments

This is not a bug report, but it would be nice if one could implement a program clock. What I mean is, if you have one clock in a simulation, you can press 'c' to step through one cycle of the clock. In my simulation, I have multiple clocks, and it doesn't work with multiple. Would it be possible to implement one clock being the "Program Clock", where that would be the one to be stepped through? It might not be possible, because it would have to interact with other clocks, but it would be very nice if it worked.

AsparaGus116 avatar Aug 04 '22 03:08 AsparaGus116

Agree. And also have the possibility to do n steps automatically. (Where n would be 4 or 8 most often for me) so I can either step in microcycles or full instructions requiring n microcycle steps.

mengstr avatar Aug 04 '22 12:08 mengstr

@mengstr You can use the break component to detect the completed instruction. With "RunToBreak" you could then execute complete instructions.

hneemann avatar Aug 04 '22 15:08 hneemann

Hm... I'll try that the next time. That will probably make this quickly cobbled together "step & clock phase" block a bit simpler. Screenshot 2022-08-04 at 18 04 15

mengstr avatar Aug 04 '22 16:08 mengstr