Digital-Logic-Sim icon indicating copy to clipboard operation
Digital-Logic-Sim copied to clipboard

[FEATURE REQUEST] Delay Between Chips

Open shhmethan opened this issue 1 year ago • 3 comments

Can you please add a setting or feature to introduce delays in chips, so that things like flip-flops work properly? It would also allow for stuff such as adding NOT gates to add a longer delay to wires. In the first version of this app, there was a delay between events, such as when the left-in was activated. You could see the "power" travel across everything and update everything else.

shhmethan avatar May 01 '25 16:05 shhmethan

although this is a good idea it is a duplicate of #335

lolmuffen avatar May 01 '25 19:05 lolmuffen

although this is a good idea it is a duplicate of #335

Not necessarily. OP is talking about a global delay to all chips to help with possible race conditions. That issue is for a dedicated Delay built-in chip.

That being said, I'm not sure a global delay would actually help with those race conditions: if every chip has an artificial N-tick delay before reacting, then you've basically got the same race condition as you would have after X ticks, but instead after N*X ticks.

RobMayer avatar May 01 '25 19:05 RobMayer

If you want to ensure reliable flip-flops, it might be best to connect them to your clock. As I optimized my computer my counters started running away and acting erratically. I started using JK flip-flops for critical components and that fixed the issue.

Image

Zhatt-0 avatar May 01 '25 19:05 Zhatt-0