Skip to content

Instantly share code, notes, and snippets.

@ddrcode
ddrcode / circuit.rs
Last active November 6, 2023 22:08
Rust: electronic circuit model. Questions about design and architecture
// Electronic circuit model (PoC)
// by ddrcode
//
// PROBLEM
// The code below is my attempt to build a model of electronic circuits.
// It tries to model a real world, where components (chips) are connected
// with each other via pins: each change on output pins triggers an action
// on corresponding input pins.
//
// APPROACH