(Usage hints for this presentation)
IT Systems, Summer Term 2025
Dr. Jens Lechtenbörger (License Information)
Recall the Hack computer architecture preview
Registers: Small memory, in CPU

“The memory hierarchy” Copyright (C) 2020 Dive into Systems, LLC under CC BY-NC-ND 4.0; from Dive into Systems
DFF and Bit
Register for one word
RAM8, RAM64, RAM512, RAM4K, RAM16K
in, address, load; output outload is 1, store in at address; otherwise, keep stateaddress as outRAM16K: \(2^{14} = 16384\) words
Nand to Tetris with built-in chip ROM32K
address[15]out[16]address as out
Recall: Program Counter (PC) holds address of next machine instruction to execute
in[16],reset, load, incout[16]out
Logic
if reset then store 0
elif load then store in
elif inc then increment stored value
else keep state
Play with RAM16K and PC in Hardware Simulator
RAM16K, address enumerates 16-bit words, neither bits nor bytesSource files are available on GitLab (check out embedded submodules) under free licenses. Icons of custom controls are by @fontawesome, released under CC BY 4.0.
Except where otherwise noted, the work “Hack Memory”, © 2024-2025 Jens Lechtenbörger, is published under the Creative Commons license CC BY-SA 4.0.