Нема описа

Min 6d2cd3e6a1 Debugging interface пре 5 година
docs c3dfa843b1 Added report_3 пре 5 година
memory 3883e25151 OISC Russian Peasant Multiplication пре 5 година
quartus 9d5c8e7121 Project restructure пре 6 година
scripts 2e58e9ab9e Added insystem reset source пре 6 година
simulation 49689e242c Do not simulate rst signal пре 6 година
src 09ba0b4397 OISC ROM пре 5 година
tools 6d2cd3e6a1 Debugging interface пре 5 година
.gitignore 299bf4d2cf Interim report update пре 6 година
Makefile 7392d1a334 Processor property пре 6 година
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.