Skip to content

shj1081/skku_CA_assignments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Computer Architecture Assignments

Overview

This repository contains project assignments for the Computer Architecture course focused on RISC-V architecture. The assignments provide practical experience in different aspects of computer architecture.

Projects Included

PA1 : RISC-V Binary Code

  • Goal: Disassemble a binary file containing RISC-V machine code into assembly instructions.
  • Input: Binary file (specified as command-line argument).
  • Output: Disassembled instructions in a specified format.
  • Computer Architecture PA2: Single-cycle RISC-V CPU Simulator

PA2 : Single-cycle RISC-V CPU Simulator

  • Supported Instructions: Includes add, sub, addi, lw, sw, beq, jal, and more.
  • Behavior:
    • Takes 2 or 3 command-line arguments for instruction and data files, and number of instructions to execute.
    • Initializes all registers to zero.

PA3 : Spike RISC-V Simulator

  • Goals:
    • Find the best cache configuration using the simulator's cache simulation.
    • Implement the LRU replacement algorithm in the simulator.
  • Build Steps:
    • Clone the repository and checkout version v1.1.0.
    • Modify the cachesim.cc file to implement the LRU replacement algorithm.
    • Configure and compile the project.

Releases

No releases published

Packages

No packages published