Keine Beschreibung

Min aa42f5562f Project update vor 6 Jahren
docs 67bb6d0dec Added docs vor 6 Jahren
memory aa42f5562f Project update vor 6 Jahren
quartus 9d5c8e7121 Project restructure vor 6 Jahren
simulation aa42f5562f Project update vor 6 Jahren
src aa42f5562f Project update vor 6 Jahren
tools aa42f5562f Project update vor 6 Jahren
.gitignore 2f2367f684 Restructrure vor 6 Jahren
Makefile ff13c35437 Added makefile assembly compiler vor 6 Jahren
UCL_project_y3.qpf 64de66976e initial vor 6 Jahren
UCL_project_y3.qsf 582d751eae Implemented working control vor 6 Jahren
readme.md 76da17477b Updated readme vor 6 Jahren

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.