Skip to content

ckswjd99-at-snu/ComputerArchitecture-2021-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Computer Architecture 2021-2

Assignments in SNU ECE Computer Architecture (430.322) lecture, at 2021 autumn.

Implemented various versions of CPU of TSC ISA.

Single cycle CPU of TSC instruction set architecture.

Multi cycle CPU of TSC instruction set architecture.

This CPU has 5 stages:

  • IF (Instruction Fetch)
  • ID (Instruction Decode)
  • EX (Execution)
  • MEM (Memory Access)
  • WB (Write Back)

New Modules: Control Hazard Detector, Data Hazard Detector.

When data hazard occurs, DHD stalls IF stage. After data hazard is resolved, it allows IF stage to proceed.

When control hazard occurs, CHD stalls ID stage. After control hazard is resolved, it allows ID stage to proceed.

New Module: Data Magic Box.

Data Magic Box decodes instructions in ID, MEM, WB stages, then provides appropriate values to every modules.

New Module: First-In-First-Out Cache.

Implemented FIFO Cache memory at instruction memory and data memory.

New Module: Younger the Better Cache.

Implemented YB Cache memory at instruction memory and data memory.

New Module: DMA Controller.

Implemented DMA controller inside CPU, activated when received inturrupt.