Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Digital Logic Sim

​A minimalistic digital logic simulator · By Sebastian Lague

[SUGESTION] Bus wires interconections

A topic by Davimmo created Apr 29, 2025 Views: 183 Replies: 5
Viewing posts 1 to 2

It would be great if there were a way for one bus wire to connect with another. In large circuits, you need several connections, and it's a bit annoying not being able to join the bus from one part of the circuit to another. Here's an image representing what I'm trying to say. I tried using NOT gates for this, but it ends up causing some issues.


There is a way to do this by using a kind of "bridge" chip: https://github.com/SebLague/Digital-Logic-Sim/issues/273

But it only works in one direction, right? I want something that works in both directions, so that any chip writing to the bus sends the signal to all interconnected buses.

In that thread, have a look at the "Bridge" chip, and how I've wired that up to two buses. It's verbose, but it works.

To your point, being able to link bridges without a chip would be nice, but this does, at least ,work for now.

The problem with this method is that even when both inputs are offline, the bus wires retain some 'memory'. It's some progress, but it's not ideal.

(+1)

That's gotta be a bug.

I will try to reproduce :)