mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Formatting.
This commit is contained in:
parent
87f2133d91
commit
a5450c27ab
@ -1,11 +1,14 @@
|
|||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
// amoalu.sv
|
// amoalu.sv
|
||||||
//
|
//
|
||||||
// Written: David_Harris@hmc.edu 10 March 2021
|
// Written: David_Harris@hmc.edu
|
||||||
// Modified:
|
// Created: 10 March 2021
|
||||||
|
// Modified: 18 January 2023
|
||||||
//
|
//
|
||||||
// Purpose: Performs AMO operations
|
// Purpose: Performs AMO operations
|
||||||
//
|
//
|
||||||
|
// Documentation: RISC-V System on Chip Design Chapter 14 (Figure ***)
|
||||||
|
//
|
||||||
// A component of the CORE-V-WALLY configurable RISC-V project.
|
// A component of the CORE-V-WALLY configurable RISC-V project.
|
||||||
//
|
//
|
||||||
// Copyright (C) 2021-23 Harvey Mudd College & Oklahoma State University
|
// Copyright (C) 2021-23 Harvey Mudd College & Oklahoma State University
|
||||||
@ -26,13 +29,12 @@
|
|||||||
|
|
||||||
`include "wally-config.vh"
|
`include "wally-config.vh"
|
||||||
|
|
||||||
// *** this should probably be moved into the LSU because it is instantiated in the D$
|
|
||||||
|
|
||||||
module amoalu (
|
module amoalu (
|
||||||
input logic [`XLEN-1:0] srca, srcb,
|
input logic [`XLEN-1:0] srca, // LSU's ReadData *** may want to change signal names.
|
||||||
input logic [6:0] funct,
|
input logic [`XLEN-1:0] srcb, // LSU's WriteData
|
||||||
input logic [1:0] width,
|
input logic [6:0] funct, // ALU Operation
|
||||||
output logic [`XLEN-1:0] result
|
input logic [1:0] width, // Memoy access width
|
||||||
|
output logic [`XLEN-1:0] result // ALU output
|
||||||
);
|
);
|
||||||
|
|
||||||
logic [`XLEN-1:0] a, b, y;
|
logic [`XLEN-1:0] a, b, y;
|
||||||
|
Loading…
Reference in New Issue
Block a user