Resources: 18-447 CMU Introduction to Computer Architecture Labs
The test-bench takes in an ARM assembly file as input via Makefile arguments and outputs a register dump and a waveform file.
include/
- Contains individual modules instantiated by top-level module; they should not be instantiated by each other. Some of the more important modules:arm_decode.v
- Passes appropriate control signals to the ALU, MAC, multiple multiplexers in the path, according to the instruction; meat of the datapathbarrel_shifter.v
- Does arithmetic and logical shifts combinatoriallyarm_memory.v
- Does asychronous reads and synchronous writes to memory; dual-ported, big-endiancond_decode.v
- Checks for CPSR condition validityarm_alu.v
- Does appropriate arithmetic op on input operands depending on select lines
arm_core.v
- Top-level module for instantiating all individual components ininclude/
; test-bench will be run on thisfpga
- Contains a simplified version of the arm_alu that is demonstrated on the Basys2 board.
Various muxes will have to be instantiated between each module for selecting operands, etc.
Chepo'd from the Telegram message.
Idea of implementing different operations is (mote daag mein of course):
- Check if required modules for making the operation work exist in the circuit
- If not, instantiate module(s) in top-level module and wire appropriately
- If they exist and any input(s) to the module(s) clash with another op (for ex. in
barrel_shifter
, an input could be a register value or an immediate value), you stuff in a mux to appropriately select the input depending on what your op is - Generate control signals for the mux(es) and the ALU in the
arm_decode
module for your op
About repo maintenance:
- Small feature gets assigned to a person after group meeting
- The person implements it in a separate branch and then sends PR to master
- The PR needs review by maintainer of module within 12hrs, and if okayed by them, can be merged into master
- If no reply on PR till 12hrs hours by maintainer, anyone can review it, and if no reply till 24hrs more, it can be merged into mastersimc
- PR should have no merge conflicts, it's responsibility of the PR-sender to keep their branch updated to master
shell/sim: darkapex verilog: kharghoshal