blob: c992269500ad763dd5a99d28bf9c497476dffb91 [file] [log] [blame] [view] [edit]
This is the baseline HDL files for the single-cycle ARMv4 ARM.
Replace dmem_big.v or dmem_litte.v with dmem.v for correct endianness.
This will depend on how your assembly is compiled (see arm2hex/arm3hex).
The DO file writes memory contents to imemory.dat and demory.dat for
instruction and data memory, respectively. Check these files to see
if you use a memory instruction to see if its successful.
16 32-bit registers
Data-processing instructions
ADD, SUB, AND, ORR
Load/Store instructions
LDR, STR
Branch instruction (PC <= PC + offset, PC holds 8 bytes past Branch Instr)
B, BL