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

TRH's Chip Collection

A topic by ThatRobHuman created Apr 16, 2025 Views: 281 Replies: 4
Viewing posts 1 to 5
(1 edit) (+1)

https://github.com/RobMayer/trh-dls-chips

I was moving between computers so I threw my sandbox save into a git repo. Figured I'd share it in case folks learn from it .

got lots of utility stuff: Counters, BiCounters, a Clock with pause, step, halt, and reset. all the latches and flip flops, and improved versions with asynch set/reset.

(1 edit)

Just added what I'm calling Taps. Meant as a convenient way to pull a single signal out of a bus without needing an entire breakout. (I bet Sebastian is working on something similar, but for now this works).

n#X will tap the Xth wire out of a 4-bus (n for nybble)

w#X will tap the Xth wire out of a 8-bus (w for word)

There's also Sources and Sinks (SRC/SNK)

Sources are "always on" and Sinks are "always off" - useful if you need to set a pin to a constant state without needing an external input pin.

Comes in 4 flavours each: "1b" is "one bit" ; "1n" is "one nybble" (a 4-bus); "1w" is "one word" (as in byte, an 8-bus); and "all" where it has all three types of connections in one chip.

Just added Bi-Directional Shift Registers.

"Plus" variants add async load capability

Added more MUXers (Plus variants have an enable pin disconnects outputs)

Added DeMUXers (Plus variants have an enable pin that disconnects outputs)

Moved some categories around.

Starting renaming pins to be more internally consistent and more real-life like.