暫無描述

Min f0c5ea9355 Added report 5 5 年之前
docs f0c5ea9355 Added report 5 5 年之前
memory 4a94cf6450 Added oisc functions, 16bit primes 5 年之前
quartus 9d5c8e7121 Project restructure 6 年之前
scripts 9fca4d2aa7 Memory update 5 年之前
simulation 49689e242c Do not simulate rst signal 6 年之前
src ca0dd6fd98 minor changes 5 年之前
tools 3de2199e7f minor fixes for interface and assembly tests 5 年之前
.gitignore 299bf4d2cf Interim report update 6 年之前
Makefile 9fca4d2aa7 Memory update 5 年之前
UCL_project_y3.qpf 64de66976e initial 6 年之前
UCL_project_y3.qsf 2e58e9ab9e Added insystem reset source 6 年之前
readme.md 76da17477b Updated readme 6 年之前

readme.md

UCL 3rd year project

Performance characterisation of 8-bit RISC and OISC architectures

The aim is to compare similar characteristic RISC and OISC architectures to determinate advantages and trade-offs following points:

  • Which processor is easier to implement and expand,
  • Which processor requires less resources to implement,
  • Which processor performs better on common benchmark.

Possible application of both architectures could be use inside of microcontroller or SoC (System on a chip) systems similar to 8bit Atmel AVR or Mirochip PIC microcontrollers, therefore processors must be capable of controlling and communicating with external modules such as UART and GPIO.

Files Structure

This project based on Intel Quartus. Hardware is implemented in SystemVerilog. Project directories:

  • src - All HDL files,
  • src/risc - HDL files specific to risc processor,
  • src/oisc - HDL files specific to oisc processor,
  • src/blocks - HDL files that are shared between both processors,
  • tools - Implemented tools like compiler for designed architecture,
  • memory - Instructions and machine code,
  • docs - All documentation,
  • quartus - Quartus generated IP files,
  • simulation - ModelSim simulation files.

Hardware Structure

The top level has 4 main blocks, that can be found in src/top.sv file.

PLL

Generates various frequences from main 50MHz crystal. Currenty 3 clock are generated:

  • mclk - 1MHz master clock for processor and uart,
  • fclk - 100MHz fast clock for sdram controller,
  • aclk - 32,768kHz auxiliary clock for timers (to be implemented).

SDRAM Block

Includes sdram controller and fifo queues to synchonise data between mclk and fclk. It communicates with processor using 24bit address bus and 16bit data bus. It is up to processor to decide how to efficiantly store data in this memory.

COM Block

This include all external functions that might be useful for processor, e.g. UART, on board LED and DIP switch control. In future this might include timers or other communication methods. Processor communicates to this block via 8bit address bus and 8bit data bus. The table of addresses to function map will be added in the future.

Processor

The processor itself. This desiged to have common interface so RISC and OISC processor and their variations could be simply swapped between without need to rewrite all project.

Implementations

FPGA

The hardware is tested on DE0 Nano FPGA board.

UART

Uses Open Source Documented Verilog UART library. This is simple 1 file library without any hardware FIFO queues.

Pinout:

  • RX - GPIO-0 Pin2 (GPIO_00)
  • TX - GPIO-0 Pin4 (GPIO_01)

SDRAM

Uses sdram-controller library to communicate with sdram chip on DE0 Nano board.