From 5d5436d446c8c212bd58337f916b816f6b7a0f39 Mon Sep 17 00:00:00 2001 From: Kevin Kim Date: Wed, 23 Aug 2023 18:25:08 -0700 Subject: [PATCH] core wrapper works --- src/wrappers/fdivsqrt.sv | 0 src/wrappers/wallypipelinedcorewrapper.sv | 56 +++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 src/wrappers/fdivsqrt.sv create mode 100644 src/wrappers/wallypipelinedcorewrapper.sv diff --git a/src/wrappers/fdivsqrt.sv b/src/wrappers/fdivsqrt.sv new file mode 100644 index 000000000..e69de29bb diff --git a/src/wrappers/wallypipelinedcorewrapper.sv b/src/wrappers/wallypipelinedcorewrapper.sv new file mode 100644 index 000000000..95a4d3d86 --- /dev/null +++ b/src/wrappers/wallypipelinedcorewrapper.sv @@ -0,0 +1,56 @@ +/////////////////////////////////////////// +// wallypipelinedcorewrapper.sv +// +// Written: Kevin Kim kekim@hmc.edu 21 August 2023 +// Modified: +// +// Purpose: A wrapper to set parameters. Vivado cannot set the top level parameters because it only supports verilog, +// not system verilog. +// +// A component of the Wally configurable RISC-V project. +// +// Copyright (C) 2021 Harvey Mudd College & Oklahoma State University +// +// SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1 +// +// Licensed under the Solderpad Hardware License v 2.1 (the “License”); you may not use this file +// except in compliance with the License, or, at your option, the Apache License version 2.0. You +// may obtain a copy of the License at +// +// https://solderpad.org/licenses/SHL-2.1/ +// +// Unless required by applicable law or agreed to in writing, any work distributed under the +// License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, +// either express or implied. See the License for the specific language governing permissions +// and limitations under the License. +//////////////////////////////////////////////////////////////////////////////////////////////// + +//`include "BranchPredictorType.vh" +//`include "config.vh" + +import cvw::*; + +module wallypipelinedcorewrapper ( + input logic clk, reset, + // Privileged + input logic MTimerInt, MExtInt, SExtInt, MSwInt, + input logic [63:0] MTIME_CLINT, + // Bus Interface + input logic [AHBW-1:0] HRDATA, + input logic HREADY, HRESP, + output logic HCLK, HRESETn, + output logic [PA_BITS-1:0] HADDR, + output logic [AHBW-1:0] HWDATA, + output logic [XLEN/8-1:0] HWSTRB, + output logic HWRITE, + output logic [2:0] HSIZE, + output logic [2:0] HBURST, + output logic [3:0] HPROT, + output logic [1:0] HTRANS, + output logic HMASTLOCK +); + `include "parameter-defs.vh" + + wallypipelinedcore #(P) core(.*); + +endmodule