├── .env.toolchain ├── .gitignore ├── README.mkdn ├── boards ├── __init__.py └── icoboard.py ├── dhrystone ├── .gitignore ├── Makefile ├── README.mkdn ├── dhry.h ├── dhry_1.c ├── dhry_2.c ├── sections.lds ├── start.S └── stdlib.c ├── doc ├── chonk.mkdn └── instruction-cycle.svg ├── hapenny ├── __init__.py ├── bus.py ├── chonk │ ├── __init__.py │ ├── cpu.py │ ├── ewbox.py │ ├── fdbox.py │ ├── gpio32.py │ ├── mem32.py │ ├── regfile32.py │ ├── sbox.py │ └── serial32.py ├── cpu.py ├── decoder.py ├── ewbox.py ├── extsram.py ├── fdbox.py ├── gpio.py ├── mem.py ├── regfile16.py ├── rvfi.py ├── sbox.py └── serial.py ├── icestick-chonk.py ├── icestick-smallest.py ├── icesticktest.py ├── icoboard-large.py ├── icolarge-bootloader.bin ├── montool ├── .gitignore ├── Cargo.lock ├── Cargo.toml ├── README.mkdn └── src │ └── main.rs ├── notes ├── 20231001.mkdn ├── 20231002.mkdn ├── 20231003.mkdn ├── 20231004.mkdn ├── 20231005.mkdn └── 20231006.mkdn ├── pdm.lock ├── pyproject.toml ├── sim-chonk.py ├── sim-cpu.py ├── smallest-toggle.bin ├── tiny-bootloader.bin ├── tinyboot-upduino-chonk.bin ├── tinyboot ├── .cargo │ └── config ├── Cargo.lock ├── Cargo.toml ├── README.mkdn ├── build.rs ├── link.x ├── rust-toolchain.toml └── src │ └── main.rs ├── upduino-bootloader.bin ├── upduino-chonk.py └── upduino-large.py /.env.toolchain: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/.env.toolchain -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | __pycache__/ 2 | *.gtkw 3 | *.vcd 4 | .pdm-python 5 | build/ 6 | sim-cpu.v 7 | -------------------------------------------------------------------------------- /README.mkdn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/README.mkdn -------------------------------------------------------------------------------- /boards/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /boards/icoboard.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/boards/icoboard.py -------------------------------------------------------------------------------- /dhrystone/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/dhrystone/.gitignore -------------------------------------------------------------------------------- /dhrystone/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/dhrystone/Makefile -------------------------------------------------------------------------------- /dhrystone/README.mkdn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/dhrystone/README.mkdn -------------------------------------------------------------------------------- /dhrystone/dhry.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/dhrystone/dhry.h -------------------------------------------------------------------------------- /dhrystone/dhry_1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/dhrystone/dhry_1.c -------------------------------------------------------------------------------- /dhrystone/dhry_2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/dhrystone/dhry_2.c -------------------------------------------------------------------------------- /dhrystone/sections.lds: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/dhrystone/sections.lds -------------------------------------------------------------------------------- /dhrystone/start.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/dhrystone/start.S -------------------------------------------------------------------------------- /dhrystone/stdlib.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/dhrystone/stdlib.c -------------------------------------------------------------------------------- /doc/chonk.mkdn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/doc/chonk.mkdn -------------------------------------------------------------------------------- /doc/instruction-cycle.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/doc/instruction-cycle.svg -------------------------------------------------------------------------------- /hapenny/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/hapenny/__init__.py -------------------------------------------------------------------------------- /hapenny/bus.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/hapenny/bus.py -------------------------------------------------------------------------------- /hapenny/chonk/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /hapenny/chonk/cpu.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/hapenny/chonk/cpu.py -------------------------------------------------------------------------------- /hapenny/chonk/ewbox.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/hapenny/chonk/ewbox.py -------------------------------------------------------------------------------- /hapenny/chonk/fdbox.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/hapenny/chonk/fdbox.py -------------------------------------------------------------------------------- /hapenny/chonk/gpio32.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/hapenny/chonk/gpio32.py -------------------------------------------------------------------------------- /hapenny/chonk/mem32.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/hapenny/chonk/mem32.py -------------------------------------------------------------------------------- /hapenny/chonk/regfile32.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/hapenny/chonk/regfile32.py -------------------------------------------------------------------------------- /hapenny/chonk/sbox.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/hapenny/chonk/sbox.py -------------------------------------------------------------------------------- /hapenny/chonk/serial32.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/hapenny/chonk/serial32.py -------------------------------------------------------------------------------- /hapenny/cpu.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/hapenny/cpu.py -------------------------------------------------------------------------------- /hapenny/decoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/hapenny/decoder.py -------------------------------------------------------------------------------- /hapenny/ewbox.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/hapenny/ewbox.py -------------------------------------------------------------------------------- /hapenny/extsram.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/hapenny/extsram.py -------------------------------------------------------------------------------- /hapenny/fdbox.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/hapenny/fdbox.py -------------------------------------------------------------------------------- /hapenny/gpio.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/hapenny/gpio.py -------------------------------------------------------------------------------- /hapenny/mem.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/hapenny/mem.py -------------------------------------------------------------------------------- /hapenny/regfile16.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/hapenny/regfile16.py -------------------------------------------------------------------------------- /hapenny/rvfi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/hapenny/rvfi.py -------------------------------------------------------------------------------- /hapenny/sbox.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/hapenny/sbox.py -------------------------------------------------------------------------------- /hapenny/serial.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/hapenny/serial.py -------------------------------------------------------------------------------- /icestick-chonk.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/icestick-chonk.py -------------------------------------------------------------------------------- /icestick-smallest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/icestick-smallest.py -------------------------------------------------------------------------------- /icesticktest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/icesticktest.py -------------------------------------------------------------------------------- /icoboard-large.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/icoboard-large.py -------------------------------------------------------------------------------- /icolarge-bootloader.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/icolarge-bootloader.bin -------------------------------------------------------------------------------- /montool/.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | -------------------------------------------------------------------------------- /montool/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/montool/Cargo.lock -------------------------------------------------------------------------------- /montool/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/montool/Cargo.toml -------------------------------------------------------------------------------- /montool/README.mkdn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/montool/README.mkdn -------------------------------------------------------------------------------- /montool/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/montool/src/main.rs -------------------------------------------------------------------------------- /notes/20231001.mkdn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/notes/20231001.mkdn -------------------------------------------------------------------------------- /notes/20231002.mkdn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/notes/20231002.mkdn -------------------------------------------------------------------------------- /notes/20231003.mkdn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/notes/20231003.mkdn -------------------------------------------------------------------------------- /notes/20231004.mkdn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/notes/20231004.mkdn -------------------------------------------------------------------------------- /notes/20231005.mkdn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/notes/20231005.mkdn -------------------------------------------------------------------------------- /notes/20231006.mkdn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/notes/20231006.mkdn -------------------------------------------------------------------------------- /pdm.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/pdm.lock -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/pyproject.toml -------------------------------------------------------------------------------- /sim-chonk.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/sim-chonk.py -------------------------------------------------------------------------------- /sim-cpu.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/sim-cpu.py -------------------------------------------------------------------------------- /smallest-toggle.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/smallest-toggle.bin -------------------------------------------------------------------------------- /tiny-bootloader.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/tiny-bootloader.bin -------------------------------------------------------------------------------- /tinyboot-upduino-chonk.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/tinyboot-upduino-chonk.bin -------------------------------------------------------------------------------- /tinyboot/.cargo/config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/tinyboot/.cargo/config -------------------------------------------------------------------------------- /tinyboot/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/tinyboot/Cargo.lock -------------------------------------------------------------------------------- /tinyboot/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/tinyboot/Cargo.toml -------------------------------------------------------------------------------- /tinyboot/README.mkdn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/tinyboot/README.mkdn -------------------------------------------------------------------------------- /tinyboot/build.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/tinyboot/build.rs -------------------------------------------------------------------------------- /tinyboot/link.x: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/tinyboot/link.x -------------------------------------------------------------------------------- /tinyboot/rust-toolchain.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/tinyboot/rust-toolchain.toml -------------------------------------------------------------------------------- /tinyboot/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/tinyboot/src/main.rs -------------------------------------------------------------------------------- /upduino-bootloader.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/upduino-bootloader.bin -------------------------------------------------------------------------------- /upduino-chonk.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/upduino-chonk.py -------------------------------------------------------------------------------- /upduino-large.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbiffle/hapenny/HEAD/upduino-large.py --------------------------------------------------------------------------------