Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 549 Bytes

README.md

File metadata and controls

33 lines (29 loc) · 549 Bytes

zephyr

zephyr is an 8 bit CPU

building

create a program

cd zephyr
vim asm/file.asm

assemble it

make assemble FILE=file.asm

copy outputted Verilog into testbench/zephyr_tb.v ~line 44
compile and run the testbench

make

Learn more about the architecture: https://www.pserb.me/projects/zephyr

supported instructions

  • LOAD
  • STR

example usage

LOAD R0, [15] "load into register R0 the value at memory location 15 (0xF)" in binary, this instruction is 01 00 1111

  • LOAD = 01
  • RO = 00
  • [15] = 1111