Skip to content

kivikakk/sevsegsim

Repository files navigation

sevsegsim

A little proving ground for and demonstration of Chryse.

Here's the gateware (top, 7-seg renderer, 4-digit flipper) running on an iCEBreaker:

photograph of sevsegsim deployed to an iCEBreaker

(The gateware's not well-written, vabandust!)

And here's the same gateware (plus blackbox definition, SDL main loop, segment renderer, simulation thread, blackbox impl) running in simulation:

photograph of sevsegsim running in cxxsim

sbt run will show help info.

sbt "run build -b icebreaker -p" builds for iCEBreaker and programs the board.

sbt "run cxxsim" builds and runs the C++ simulation.

sbt "run cxxsim -v out.vcd" also generates a VCD:

screenshot of GTKWave showing the waveforms for the sim

(The gateware responds to UBTN presses by rotating the output 180°.)