update busybear testbench to conform to new structure

This commit is contained in:
Noah Boorstin 2021-01-29 17:46:50 +00:00
parent 4687d6998a
commit 7183910c84
3 changed files with 21 additions and 1 deletions

View File

@ -57,6 +57,9 @@
// Address space // Address space
`define RESET_VECTOR 64'h0000000000001000 `define RESET_VECTOR 64'h0000000000001000
// Bus Interface
`define AHBW 64
// Test modes // Test modes
// Tie GPIO outputs back to inputs // Tie GPIO outputs back to inputs

View File

@ -131,6 +131,6 @@ add wave /testbench_busybear/InstrWName
#set DefaultRadix hexadecimal #set DefaultRadix hexadecimal
# #
#-- Run the Simulation #-- Run the Simulation
run 621070 run 621530
#run -all #run -all
##quit ##quit

View File

@ -16,6 +16,23 @@ module testbench_busybear();
logic TimerIntM = 0, SwIntM = 0; // from CLINT logic TimerIntM = 0, SwIntM = 0; // from CLINT
logic ExtIntM = 0; // not yet connected logic ExtIntM = 0; // not yet connected
logic [`AHBW-1:0] HRDATA;
logic HREADY, HRESP;
logic [31:0] HADDR;
logic [`AHBW-1:0] HWDATA;
logic HWRITE;
logic [2:0] HSIZE;
logic [2:0] HBURST;
logic [3:0] HPROT;
logic [1:0] HTRANS;
logic HMASTLOCK;
assign GPIOPinsIn = 0;
assign UARTSin = 1;
assign HREADY = 1;
assign HRESP = 0;
assign HRDATA = 0;
// for now, seem to need these to be zero until we get a better idea // for now, seem to need these to be zero until we get a better idea
assign InstrAccessFaultF = 0; assign InstrAccessFaultF = 0;
assign DataAccessFaultM = 0; assign DataAccessFaultM = 0;