From e6e4f17afe7442a4bc05e12f1f69479d84db9ef9 Mon Sep 17 00:00:00 2001 From: jl7719 Date: Tue, 24 Nov 2020 14:20:29 +0900 Subject: [PATCH] Add initial coursework deliverables --- docs/mips_data_sheet.pdf | 0 rtl/mips_cpu_bus.v | 16 ++++++++++++++++ rtl/mips_cpu_harvard.v | 21 +++++++++++++++++++++ test/test_mips_cpu_bus.sh | 4 ++++ test/test_mips_cpu_harvard.sh | 4 ++++ 5 files changed, 45 insertions(+) create mode 100644 docs/mips_data_sheet.pdf create mode 100644 rtl/mips_cpu_bus.v create mode 100644 rtl/mips_cpu_harvard.v create mode 100644 test/test_mips_cpu_bus.sh create mode 100644 test/test_mips_cpu_harvard.sh diff --git a/docs/mips_data_sheet.pdf b/docs/mips_data_sheet.pdf new file mode 100644 index 0000000..e69de29 diff --git a/rtl/mips_cpu_bus.v b/rtl/mips_cpu_bus.v new file mode 100644 index 0000000..111a7b3 --- /dev/null +++ b/rtl/mips_cpu_bus.v @@ -0,0 +1,16 @@ +module mips_cpu_bus( + /* Standard signals */ + input logic clk, + input logic reset, + output logic active, + output logic[31:0] register_v0, + + /* Avalon memory mapped bus controller (master) */ + output logic[31:0] address, + output logic write, + output logic read, + input logic waitrequest, + output logic[31:0] writedata, + output logic[3:0] byteenable, + input logic[31:0] readdata +); diff --git a/rtl/mips_cpu_harvard.v b/rtl/mips_cpu_harvard.v new file mode 100644 index 0000000..9442239 --- /dev/null +++ b/rtl/mips_cpu_harvard.v @@ -0,0 +1,21 @@ +module mips_cpu_harvard( + /* Standard signals */ + input logic clk, + input logic reset, + output logic active, + output logic [31:0] register_v0, + + /* New clock enable. See below. */ + input logic clk_enable, + + /* Combinatorial read access to instructions */ + output logic[31:0] instr_address, + input logic[31:0] instr_readdata, + + /* Combinatorial read and single-cycle write access to instructions */ + output logic[31:0] data_address, + output logic data_write, + output logic data_read, + output logic[31:0] data_writedata, + input logic[31:0] data_readdata +); \ No newline at end of file diff --git a/test/test_mips_cpu_bus.sh b/test/test_mips_cpu_bus.sh new file mode 100644 index 0000000..bee7f43 --- /dev/null +++ b/test/test_mips_cpu_bus.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +# should not create any files in the rtl dir +# but auxiliary files / dirs can be utilised \ No newline at end of file diff --git a/test/test_mips_cpu_harvard.sh b/test/test_mips_cpu_harvard.sh new file mode 100644 index 0000000..bee7f43 --- /dev/null +++ b/test/test_mips_cpu_harvard.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +# should not create any files in the rtl dir +# but auxiliary files / dirs can be utilised \ No newline at end of file