Digital icon indicating copy to clipboard operation
Digital copied to clipboard

Add feature to "Clock Input"

Open Enlightenment-zz opened this issue 1 year ago • 7 comments

For "Clock Input", add ability to automatically stop after X number of clock cycles.

Enlightenment-zz avatar Sep 29 '24 16:09 Enlightenment-zz

Yes. A clock device that output 'n' number of pulses and then stops until triggered again would be nice to have. I tend to often need to manually step through a clocked design and I need to to it in steps of 8 or something like that. Sometimes I want to get deep into the running of an application and I want to quickly get to like 24768 steps into the running and then start single stepping to debug a problem.

mengstr avatar Sep 30 '24 18:09 mengstr

There is a break component. If the circuit contains a break component, the “Run To Break” button is enabled. This button clocks the simulation until the break signal is detected.

hneemann avatar Sep 30 '24 19:09 hneemann

I've never really got the break component do anything that I like to do. :)

In a design like this I'd like to run 20 clocks (at clock speed or full speed, dosen't really matter). After the 20 steps I'd like to manually send clocks (or possible sometimes do the propagation-stepping for some of the clocks). But however I try to use I can't really do anything else than just propagate-step slowly slowly through the operations after the break is triggered.

I'm sure that has its usage cases, but doing several dozens of steps to propagate one clock edge isn't always practical, especially if you have stopped a little bit ahead and then want to manually clock the design.

Screenshot 2024-09-30 at 21 24 48

mengstr avatar Sep 30 '24 19:09 mengstr

I'm not sure I understood that. You can integrate several break components into the circuit and “fast-forward” the simulation to each of the break components. This gives you full control over the breakpoints. What happens in the circuit shown if F7 is pressed after starting the simulation?

hneemann avatar Sep 30 '24 20:09 hneemann

[On MacOS] The F7 doesn't do anything regardless if the simulation is stopped or has been started (I've by chance discovered that Start has Space as a shortcut key, something that is not apparent in the drop down menus).

The button for Run to Break is also always disabled and can't be clicked.

Screenshot 2024-09-30 at 22 06 59 Screenshot 2024-09-30 at 22 06 50

mengstr avatar Sep 30 '24 20:09 mengstr

You have to disable the clock: The clock control needs to be manual. And only one clock component is allowed in the circuit to make it work.

hneemann avatar Oct 01 '24 19:10 hneemann

Hmm... Yea. I see now that it says so in the help - I really should learn to read the help files. :trollface: I'll give the break component a go again and see if they could fit into any of my usage cases. Thanks.

mengstr avatar Oct 02 '24 06:10 mengstr