Добавление кредитов в исходники

This commit is contained in:
Andrei Solodovnikov
2024-02-21 11:48:18 +03:00
parent a01446eb43
commit 3dcb0b76f9
67 changed files with 686 additions and 251 deletions

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Nikita Bulavin
* Email(s) : nekkit6@edu.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module nexys_adder( module nexys_adder(
input CLK100, input CLK100,
input resetn, input resetn,

View File

@@ -1,12 +1,13 @@
////////////////////////////////////////////////////////////////////////////////// /* -----------------------------------------------------------------------------
// Company: MIET * Project Name : Architectures of Processor Systems (APS) lab work
// Engineer: Andrei Solodovnikov * Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
// Module Name: tb_fulladder See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
// Project Name: RISCV_practicum * ------------------------------------------------------------------------------
// Target Devices: Nexys A7-100T */
// Description: tb for 1-bit fulladder
//////////////////////////////////////////////////////////////////////////////////
module tb_fulladder(); module tb_fulladder();

View File

@@ -1,12 +1,13 @@
////////////////////////////////////////////////////////////////////////////////// /* -----------------------------------------------------------------------------
// Company: MIET * Project Name : Architectures of Processor Systems (APS) lab work
// Engineer: Andrei Solodovnikov * Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
// Module Name: tb_fulladder32 See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
// Project Name: RISCV_practicum * ------------------------------------------------------------------------------
// Target Devices: Nexys A7-100T */
// Description: tb for 32-bit fulladder
//////////////////////////////////////////////////////////////////////////////////
module tb_fulladder32(); module tb_fulladder32();

View File

@@ -1,12 +1,13 @@
////////////////////////////////////////////////////////////////////////////////// /* -----------------------------------------------------------------------------
// Company: MIET * Project Name : Architectures of Processor Systems (APS) lab work
// Engineer: Andrei Solodovnikov * Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
// Module Name: tb_fulladder4 See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
// Project Name: RISCV_practicum * ------------------------------------------------------------------------------
// Target Devices: Nexys A7-100T */
// Description: tb for 4-bit fulladder
//////////////////////////////////////////////////////////////////////////////////
module tb_fulladder4(); module tb_fulladder4();

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
package alu_opcodes_pkg; package alu_opcodes_pkg;
localparam ALU_OP_WIDTH = 5; localparam ALU_OP_WIDTH = 5;

View File

@@ -1,15 +1,13 @@
/* ----------------------------------------------------------------------------- /* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work * Project Name : Architectures of Processor Systems (APS) lab work
* File : nexys_alu.sv
* Organization : National Research University of Electronic Technology (MIET) * Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems * Department : Institute of Microdevices and Control Systems
* Author(s) : Alexander Kharlamov * Author(s) : Alexander Kharlamov
* Email(s) : sasha_xarlamov@org.miet.ru * Email(s) : sasha_xarlamov@org.miet.ru
See LICENSE file for licensing details. See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------ * ------------------------------------------------------------------------------
*/ */
module nexys_alu( module nexys_alu(
input logic clk_i, input logic clk_i,
input logic arstn_i, input logic arstn_i,

View File

@@ -1,13 +1,13 @@
////////////////////////////////////////////////////////////////////////////////// /* -----------------------------------------------------------------------------
// Company: MIET * Project Name : Architectures of Processor Systems (APS) lab work
// Engineer: Nikita Bulavin * Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
// Module Name: tb_miriscv_alu * Author(s) : Nikita Bulavin
// Project Name: RISCV_practicum * Email(s) : nekkit6@edu.miet.ru
// Target Devices: Nexys A7-100T
// Description: tb for miriscv alu
//////////////////////////////////////////////////////////////////////////////////
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module tb_miriscv_alu(); module tb_miriscv_alu();
import alu_opcodes_pkg::*; import alu_opcodes_pkg::*;

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Nikita Bulavin
* Email(s) : nekkit6@edu.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module nexys_rf_riscv( module nexys_rf_riscv(
input CLK100, input CLK100,
input resetn, input resetn,

View File

@@ -1,13 +1,13 @@
////////////////////////////////////////////////////////////////////////////////// /* -----------------------------------------------------------------------------
// Company: MIET * Project Name : Architectures of Processor Systems (APS) lab work
// Engineer: Nikita Bulavin * Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
// Module Name: tb_data_mem * Author(s) : Nikita Bulavin
// Project Name: RISCV_practicum * Email(s) : nekkit6@edu.miet.ru
// Target Devices: Nexys A7-100T
// Description: tb for data memory
//////////////////////////////////////////////////////////////////////////////////
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module tb_data_mem(); module tb_data_mem();
parameter ADDR_SIZE = 16384; parameter ADDR_SIZE = 16384;

View File

@@ -1,13 +1,13 @@
////////////////////////////////////////////////////////////////////////////////// /* -----------------------------------------------------------------------------
// Company: MIET * Project Name : Architectures of Processor Systems (APS) lab work
// Engineer: Nikita Bulavin * Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
// Module Name: tb_instr_mem * Author(s) : Nikita Bulavin
// Project Name: RISCV_practicum * Email(s) : nekkit6@edu.miet.ru
// Target Devices: Nexys A7-100T
// Description: tb for instruction memory
//////////////////////////////////////////////////////////////////////////////////
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module tb_instr_mem(); module tb_instr_mem();
parameter ADDR_SIZE = 4096; parameter ADDR_SIZE = 4096;

View File

@@ -1,13 +1,13 @@
////////////////////////////////////////////////////////////////////////////////// /* -----------------------------------------------------------------------------
// Company: MIET * Project Name : Architectures of Processor Systems (APS) lab work
// Engineer: Nikita Bulavin * Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
// Module Name: tb_rf_riscv * Author(s) : Nikita Bulavin
// Project Name: RISCV_practicum * Email(s) : nekkit6@edu.miet.ru
// Target Devices: Nexys A7-100T
// Description: tb for RISC-V register file
//////////////////////////////////////////////////////////////////////////////////
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module tb_rf_riscv(); module tb_rf_riscv();
logic CLK; logic CLK;

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Nikita Bulavin
* Email(s) : nekkit6@edu.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module nexys_CYBERcobra_dz( module nexys_CYBERcobra_dz(
input CLK100, input CLK100,
input resetn, input resetn,

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Nikita Bulavin
* Email(s) : nekkit6@edu.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module nexys_CYBERcobra( module nexys_CYBERcobra(
input CLK100, input CLK100,
input resetn, input resetn,

View File

@@ -1,13 +1,13 @@
////////////////////////////////////////////////////////////////////////////////// /* -----------------------------------------------------------------------------
// Company: MIET * Project Name : Architectures of Processor Systems (APS) lab work
// Engineer: Nikita Bulavin * Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
// Module Name: tb_cybercobra * Author(s) : Nikita Bulavin
// Project Name: RISCV_practicum * Email(s) : nekkit6@edu.miet.ru
// Target Devices: Nexys A7-100T
// Description: tb for CYBERcobra 3000 Pro 2.1
//////////////////////////////////////////////////////////////////////////////////
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module tb_CYBERcobra(); module tb_CYBERcobra();
CYBERcobra dut( CYBERcobra dut(

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
package alu_opcodes_pkg; package alu_opcodes_pkg;
localparam ALU_OP_WIDTH = 5; localparam ALU_OP_WIDTH = 5;

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
package csr_pkg; package csr_pkg;
localparam CSR_RW = 3'b001; localparam CSR_RW = 3'b001;

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
package riscv_pkg; package riscv_pkg;
import alu_opcodes_pkg::*; import alu_opcodes_pkg::*;

View File

@@ -1,14 +1,13 @@
////////////////////////////////////////////////////////////////////////////////// /* -----------------------------------------------------------------------------
// Company: MIET * Project Name : Architectures of Processor Systems (APS) lab work
// Engineer: Nikita Bulavin * Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
// Module Name: tb_decoder_riscv * Author(s) : Nikita Bulavin
// Project Name: RISCV_practicum * Email(s) : nekkit6@edu.miet.ru
// Target Devices: Nexys A7-100T
// Description: tb for decoder riscv
//////////////////////////////////////////////////////////////////////////////////
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module tb_decoder_riscv(); module tb_decoder_riscv();
import riscv_pkg::*; import riscv_pkg::*;

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
package alu_opcodes_pkg; package alu_opcodes_pkg;
localparam ALU_OP_WIDTH = 5; localparam ALU_OP_WIDTH = 5;

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Nikita Bulavin
* Email(s) : nekkit6@edu.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module nexys_riscv_unit( module nexys_riscv_unit(
input CLK100, input CLK100,
input resetn, input resetn,

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
package csr_pkg; package csr_pkg;
localparam CSR_RW = 3'b001; localparam CSR_RW = 3'b001;

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
package riscv_pkg; package riscv_pkg;
import alu_opcodes_pkg::*; import alu_opcodes_pkg::*;

View File

@@ -1,13 +1,13 @@
////////////////////////////////////////////////////////////////////////////////// /* -----------------------------------------------------------------------------
// Company: MIET * Project Name : Architectures of Processor Systems (APS) lab work
// Engineer: Nikita Bulavin * Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
// Module Name: tb_riscv_unit * Author(s) : Nikita Bulavin
// Project Name: RISCV_practicum * Email(s) : nekkit6@edu.miet.ru
// Target Devices: Nexys A7-100T
// Description: tb for datapath
//////////////////////////////////////////////////////////////////////////////////
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module tb_riscv_unit(); module tb_riscv_unit();
reg clk; reg clk;

View File

@@ -1,13 +1,13 @@
////////////////////////////////////////////////////////////////////////////////// /* -----------------------------------------------------------------------------
// Company: MIET * Project Name : Architectures of Processor Systems (APS) lab work
// Engineer: Andrei Solodovnikov * Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
// Module Name: lsu_testbench See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
// Project Name: RISCV_practicum * ------------------------------------------------------------------------------
// Target Devices: Nexys A7-100T */
// Description: tb for Load&Store module
//
//////////////////////////////////////////////////////////////////////////////////
module tb_lsu(); module tb_lsu();
import riscv_pkg::*; import riscv_pkg::*;
logic clk_i ; logic clk_i ;

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
package csr_pkg; package csr_pkg;
localparam CSR_RW = 3'b001; localparam CSR_RW = 3'b001;

View File

@@ -1,13 +1,13 @@
////////////////////////////////////////////////////////////////////////////////// /* -----------------------------------------------------------------------------
// Company: MIET * Project Name : Architectures of Processor Systems (APS) lab work
// Engineer: Daniil Strelkov * Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Daniil Strelkov
* Email(s) : @edu.miet.ru
// Module Name: tb_csr See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
// Project Name: RISCV_practicum * ------------------------------------------------------------------------------
// Target Devices: Nexys A7-100T */
// Description: tb for CSR controller
//
//////////////////////////////////////////////////////////////////////////////////
module tb_csr(); module tb_csr();
logic clk_i; logic clk_i;

View File

@@ -1,14 +1,13 @@
////////////////////////////////////////////////////////////////////////////////// /* -----------------------------------------------------------------------------
// Company: MIET * Project Name : Architectures of Processor Systems (APS) lab work
// Engineer: Daniil Strelkov * Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
// Module Name: tb_irq * Author(s) : Daniil Strelkov
// Project Name: RISCV_practicum * Email(s) : @edu.miet.ru
// Target Devices: Nexys A7-100T
// Description: tb for interrupt controller
//
//////////////////////////////////////////////////////////////////////////////////
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module tb_irq(); module tb_irq();
logic clk_i; logic clk_i;
logic rst_i; logic rst_i;

View File

@@ -1,14 +1,13 @@
////////////////////////////////////////////////////////////////////////////////// /* -----------------------------------------------------------------------------
// Company: MIET * Project Name : Architectures of Processor Systems (APS) lab work
// Engineer: Andrei Solodovnikov * Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
// Module Name: tb_riscv_unit * Author(s) : Andrei Solodovnikov
// Project Name: RISCV_practicum * Email(s) : hepoh@org.miet.ru
// Target Devices: Nexys A7-100T
// Description: tb for riscv unit with irq support
//////////////////////////////////////////////////////////////////////////////////
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module tb_irq_unit(); module tb_irq_unit();
reg clk; reg clk;

View File

@@ -1,14 +1,13 @@
////////////////////////////////////////////////////////////////////////////////// /* -----------------------------------------------------------------------------
// Company: MIET * Project Name : Architectures of Processor Systems (APS) lab work
// Engineer: Solodovnikov Andrei * Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
// Module Name: tb_daisy_chain * Author(s) : Andrei Solodovnikov
// Project Name: RISCV_practicum * Email(s) : hepoh@org.miet.ru
// Target Devices: Nexys A7-100T
// Description: tb for daisy chain
//
//////////////////////////////////////////////////////////////////////////////////
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module tb_daisy_chain(); module tb_daisy_chain();
logic clk_i, rst_i, ready_i, irq_ret_i; logic clk_i, rst_i, ready_i, irq_ret_i;

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
_start: _start:
# Инициализируем начальные значения регистров # Инициализируем начальные значения регистров
0: 030000b7 li x1 , 0x03000000 # сохраняем базовый адрес клавиатуры 0: 030000b7 li x1 , 0x03000000 # сохраняем базовый адрес клавиатуры

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
_start: _start:
# Инициализируем начальные значения регистров # Инициализируем начальные значения регистров
0: 030000b7 li x1, 0x03000000 # сохраняем базовый адрес клавиатуры 0: 030000b7 li x1, 0x03000000 # сохраняем базовый адрес клавиатуры

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
_start: _start:
# Инициализируем начальные значения регистров # Инициализируем начальные значения регистров
0: 050000b7 li x1 , 0x05000000 # сохраняем базовый адрес uart_rx 0: 050000b7 li x1 , 0x05000000 # сохраняем базовый адрес uart_rx

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
_start: _start:
# Инициализируем начальные значения регистров # Инициализируем начальные значения регистров
0: 050000b7 li x1, 0x05000000 # сохраняем базовый адрес uart_rx 0: 050000b7 li x1, 0x05000000 # сохраняем базовый адрес uart_rx

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
_start: _start:
# Инициализируем начальные значения регистров # Инициализируем начальные значения регистров
0: 050000b7 li x1 , 0x05000000 # сохраняем базовый адрес uart_rx 0: 050000b7 li x1 , 0x05000000 # сохраняем базовый адрес uart_rx

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
_start: _start:
# Инициализируем начальные значения регистров # Инициализируем начальные значения регистров
0: 010000b7 li x1, 0x01000000 # сохраняем базовый адрес переключателей 0: 010000b7 li x1, 0x01000000 # сохраняем базовый адрес переключателей

View File

@@ -1,3 +1,26 @@
//////////////////////////////////////////////////////////////////////////////////
// Company: Digilent Inc.
// Engineer: Thomas Kappenman
//
// Create Date: 03/03/2015 09:33:36 PM
// Design Name:
// Module Name: PS2Receiver
// Project Name: Nexys4DDR Keyboard Demo
// Target Devices: Nexys4DDR
// Tool Versions:
// Description: PS2 Receiver module used to shift in keycodes from a keyboard plugged into the PS2 port
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
// Modified in 2023 by engineers of
// National Research University of Electronic Technology
// Nikita Bulavin and Andrei Solodovnikov
//
//////////////////////////////////////////////////////////////////////////////////
module PS2Receiver( module PS2Receiver(
input logic clk_i, input logic clk_i,
input logic rst_i, input logic rst_i,

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Nikita Bulavin
* Email(s) : nekkit6@edu.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module hex_digits( module hex_digits(
input logic clk_i, input logic clk_i,
input logic rst_i, input logic rst_i,

View File

@@ -8,6 +8,16 @@
// CONDITIONS OF ANY KIND, either express or implied. See the License for the // CONDITIONS OF ANY KIND, either express or implied. See the License for the
// specific language governing permissions and limitations under the License. // specific language governing permissions and limitations under the License.
// This file has been taken from https://github.com/pulp-platform/apb_uart_sv
// and modified by Andrei Solodovnikov in order to be used in
// Architectures of Processor Systems (APS) lab work project
// Changelog:
// some of the input signals has been hardcoded to constant values
// cfg_div_i input has been replaced by baudrate_i input signal.
// The signal cfg_div_i is now controled by baudrate_i input, and this control
// logic is work from assumption that clk_i is 10 MHz.
module uart_rx ( module uart_rx (
input logic clk_i, input logic clk_i,
input logic rst_i, input logic rst_i,

View File

@@ -8,6 +8,16 @@
// CONDITIONS OF ANY KIND, either express or implied. See the License for the // CONDITIONS OF ANY KIND, either express or implied. See the License for the
// specific language governing permissions and limitations under the License. // specific language governing permissions and limitations under the License.
// This file has been taken from https://github.com/pulp-platform/apb_uart_sv
// and modified by Andrei Solodovnikov in order to be used in
// Architectures of Processor Systems (APS) lab work project
// Changelog:
// some of the input signals has been hardcoded to constant values
// cfg_div_i input has been replaced by baudrate_i input signal.
// The signal cfg_div_i is now controled by baudrate_i input, and this control
// logic is work from assumption that clk_i is 10 MHz.
module uart_tx ( module uart_tx (
input logic clk_i, input logic clk_i,
input logic rst_i, input logic rst_i,

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Alexander Kharlamov
* Email(s) : sasha_xarlamov@org.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module vgachargen module vgachargen
import vgachargen_pkg::*; import vgachargen_pkg::*;
#( #(

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Alexander Kharlamov
* Email(s) : sasha_xarlamov@org.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
package vgachargen_pkg; package vgachargen_pkg;
parameter int unsigned HD = 640; // Display area parameter int unsigned HD = 640; // Display area

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module sys_clk_rst_gen#( module sys_clk_rst_gen#(
parameter DIV_WIDTH = 4 parameter DIV_WIDTH = 4
)( )(

View File

@@ -1,14 +1,13 @@
////////////////////////////////////////////////////////////////////////////////// /* -----------------------------------------------------------------------------
// Company: MIET * Project Name : Architectures of Processor Systems (APS) lab work
// Engineer: Andrei Solodovnikov * Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
// Module Name: tb_riscv_unit * Author(s) : Andrei Solodovnikov
// Project Name: RISCV_practicum * Email(s) : hepoh@org.miet.ru
// Target Devices: Nexys A7-100T
// Description: tb for peripheral units
//
//////////////////////////////////////////////////////////////////////////////////
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module tb_riscv_unit(); module tb_riscv_unit();
logic clk; logic clk;

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
OUTPUT_FORMAT("elf32-littleriscv") /* Указываем порядок следования байт */ OUTPUT_FORMAT("elf32-littleriscv") /* Указываем порядок следования байт */
ENTRY(_start) /* мы сообщаем компоновщику, что первая ENTRY(_start) /* мы сообщаем компоновщику, что первая

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
#pragma once #pragma once
#include <stdint.h> #include <stdint.h>

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
.section .boot .section .boot
.global _start .global _start

View File

@@ -1,3 +1,13 @@
# -----------------------------------------------------------------------------
# Project Name : Architectures of Processor Systems (APS) lab work
# Organization : National Research University of Electronic Technology (MIET)
# Department : Institute of Microdevices and Control Systems
# Author(s) : Andrei Solodovnikov
# Email(s) : hepoh@org.miet.ru
#
# See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
# ------------------------------------------------------------------------------
#
import argparse import argparse
import serial import serial

View File

@@ -1,14 +1,13 @@
////////////////////////////////////////////////////////////////////////////////// /* -----------------------------------------------------------------------------
// Company: MIET * Project Name : Architectures of Processor Systems (APS) lab work
// Engineer: Solodovnikov Andrei * Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
// Module Name: tb_blaster * Author(s) : Andrei Solodovnikov
// Project Name: RISCV_practicum * Email(s) : hepoh@org.miet.ru
// Target Devices: Nexys A7-100T
// Description: tb for programming device
//
//////////////////////////////////////////////////////////////////////////////////
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module tb_blaster(); module tb_blaster();
logic clk_i; logic clk_i;

View File

@@ -1,14 +1,13 @@
////////////////////////////////////////////////////////////////////////////////// /* -----------------------------------------------------------------------------
// Company: MIET * Project Name : Architectures of Processor Systems (APS) lab work
// Engineer: Solodovnikov Andrei * Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
// Module Name: tb_top_asic * Author(s) : Andrei Solodovnikov
// Project Name: RISCV_practicum * Email(s) : hepoh@org.miet.ru
// Target Devices: Nexys A7-100T
// Description: tb for top level entity
//
//////////////////////////////////////////////////////////////////////////////////
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module tb_top_asic(); module tb_top_asic();
logic clk10mhz_i; logic clk10mhz_i;

View File

@@ -1,3 +1,13 @@
# -----------------------------------------------------------------------------
# Project Name : Architectures of Processor Systems (APS) lab work
# Organization : National Research University of Electronic Technology (MIET)
# Department : Institute of Microdevices and Control Systems
# Author(s) : Andrei Solodovnikov
# Email(s) : hepoh@org.miet.ru
#
# See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
# ------------------------------------------------------------------------------
#
CC_PATH = /c/riscv_cc/bin CC_PATH = /c/riscv_cc/bin
CC_PREFIX = riscv-none-elf CC_PREFIX = riscv-none-elf

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
OUTPUT_FORMAT("elf32-littleriscv") /* Указываем порядок следования байт */ OUTPUT_FORMAT("elf32-littleriscv") /* Указываем порядок следования байт */
ENTRY(_start) /* мы сообщаем компоновщику, что первая ENTRY(_start) /* мы сообщаем компоновщику, что первая

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
.section .boot .section .boot
.global _start .global _start

View File

@@ -1,14 +1,13 @@
////////////////////////////////////////////////////////////////////////////////// /* -----------------------------------------------------------------------------
// Company: MIET * Project Name : Architectures of Processor Systems (APS) lab work
// Engineer: Solodovnikov Andrei * Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
// Module Name: tb_coremark * Author(s) : Andrei Solodovnikov
// Project Name: RISCV_practicum * Email(s) : hepoh@org.miet.ru
// Target Devices: Nexys A7-100T
// Description: tb for running Coremark
//
//////////////////////////////////////////////////////////////////////////////////
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module tb_coremark(); module tb_coremark();
logic clk10mhz_i; logic clk10mhz_i;

View File

@@ -1,14 +1,13 @@
////////////////////////////////////////////////////////////////////////////////// /* -----------------------------------------------------------------------------
// Company: MIET * Project Name : Architectures of Processor Systems (APS) lab work
// Engineer: Solodovnikov Andrei * Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
// Module Name: tb_timer * Author(s) : Andrei Solodovnikov
// Project Name: RISCV_practicum * Email(s) : hepoh@org.miet.ru
// Target Devices: Nexys A7-100T
// Description: tb for timer
//
//////////////////////////////////////////////////////////////////////////////////
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module tb_timer(); module tb_timer();
logic clk_i; logic clk_i;

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module fulladder32( module fulladder32(
input logic [31:0] a_i, input logic [31:0] a_i,
input logic [31:0] b_i, input logic [31:0] b_i,

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Nikita Bulavin
* Email(s) : nekkit6@edu.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module data_mem ( module data_mem (
input logic clk_i, input logic clk_i,
input logic [31:0] addr_i, input logic [31:0] addr_i,

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Nikita Bulavin
* Email(s) : nekkit6@edu.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module instr_mem( module instr_mem(
input logic [31:0] addr_i, input logic [31:0] addr_i,
output logic [31:0] read_data_o output logic [31:0] read_data_o

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Nikita Bulavin
* Email(s) : nekkit6@edu.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module rf_riscv( module rf_riscv(
input logic clk_i, input logic clk_i,
input logic write_enable_i, input logic write_enable_i,

View File

@@ -1,13 +1,13 @@
////////////////////////////////////////////////////////////////////////////////// /* -----------------------------------------------------------------------------
// Company: MIET * Project Name : Architectures of Processor Systems (APS) lab work
// Engineer: Alexey Kozin * Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
// Module Name: decoder_riscv * Author(s) : Alexey Kozin
// Project Name: RISCV_practicum * Email(s) : @edu.miet.ru
// Target Devices: Nexys A7-100T
// Description: main decoder for risc-v processor
//////////////////////////////////////////////////////////////////////////////////
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module gpr_we_table (gis_ew_rpg, edocpo_6, edocpo_5, edocpo_4, edocpo_3, edocpo_2); module gpr_we_table (gis_ew_rpg, edocpo_6, edocpo_5, edocpo_4, edocpo_3, edocpo_2);
output logic gis_ew_rpg; output logic gis_ew_rpg;
input edocpo_6, edocpo_5, edocpo_4, edocpo_3, edocpo_2; input edocpo_6, edocpo_5, edocpo_4, edocpo_3, edocpo_2;

View File

@@ -1,13 +1,13 @@
////////////////////////////////////////////////////////////////////////////////// /* -----------------------------------------------------------------------------
// Company: MIET * Project Name : Architectures of Processor Systems (APS) lab work
// Engineer: Andrei Solodovnikov * Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
// Module Name: ext_mem See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
// Project Name: RISCV_practicum * ------------------------------------------------------------------------------
// Target Devices: Nexys A7-100T */
// Description: external memory with byte_enable support
//
//////////////////////////////////////////////////////////////////////////////////
module ext_mem( module ext_mem(
input logic clk_i, input logic clk_i,
input logic mem_req_i, input logic mem_req_i,

View File

@@ -1,13 +1,13 @@
////////////////////////////////////////////////////////////////////////////////// /* -----------------------------------------------------------------------------
// Company: MIET * Project Name : Architectures of Processor Systems (APS) lab work
// Engineer: Andrei Solodovnikov * Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
// Module Name: lsu_testbench See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
// Project Name: RISCV_practicum * ------------------------------------------------------------------------------
// Target Devices: Nexys A7-100T */
// Description: Load&Store Unit
//
//////////////////////////////////////////////////////////////////////////////////
module riscv_lsu( module riscv_lsu(
input logic clk_i, input logic clk_i,
input logic rst_i, input logic rst_i,

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module csr_controller ( module csr_controller (
input logic clk_i, input logic clk_i,
@@ -58,14 +68,14 @@ module csr_controller (
assign ljljlj = rs1_data_i; assign ljljlj = rs1_data_i;
always_comb begin always_comb begin
case (llafdh[2:0]) case (llafdh[2:0])
0: abvD3l <= ljljlj ^ rs1_data_i; 0: abvD3l = ljljlj ^ rs1_data_i;
1: abvD3l <= ljljlj; 1: abvD3l = ljljlj;
2: abvD3l <= ljljlj | ljiufdqwq; 2: abvD3l = ljljlj | ljiufdqwq;
3: abvD3l <= ~ljljlj & ljiufdqwq; 3: abvD3l = ~ljljlj & ljiufdqwq;
4: abvD3l <= ~rs1_data_i ^ ~ljljlj; 4: abvD3l = ~rs1_data_i ^ ~ljljlj;
5: abvD3l <= ljiuasdf; 5: abvD3l = ljiuasdf;
6: abvD3l <= ljiuasdf | ljiufdqwq; 6: abvD3l = ljiuasdf | ljiufdqwq;
7: abvD3l <= ~ljiuasdf & ljiufdqwq; 7: abvD3l = ~ljiuasdf & ljiufdqwq;
endcase endcase
end end

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module interrupt_controller( module interrupt_controller(
input logic clk_i, input logic clk_i,
input logic rst_i, input logic rst_i,

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module half_divider( module half_divider(
input logic [31:0] numerator, input logic [31:0] numerator,
output logic [31:0] quotient output logic [31:0] quotient

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module max_min( module max_min(
input logic [31:0] a, input logic [31:0] a,
input logic [31:0] b, input logic [31:0] b,

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module tb_vector_abs(); module tb_vector_abs();
logic [31:0] a; logic [31:0] a;

View File

@@ -1,3 +1,13 @@
/* -----------------------------------------------------------------------------
* Project Name : Architectures of Processor Systems (APS) lab work
* Organization : National Research University of Electronic Technology (MIET)
* Department : Institute of Microdevices and Control Systems
* Author(s) : Andrei Solodovnikov
* Email(s) : hepoh@org.miet.ru
See https://github.com/MPSU/APS/blob/master/LICENSE file for licensing details.
* ------------------------------------------------------------------------------
*/
module vector_abs( module vector_abs(
input logic [31:0] x, input logic [31:0] x,
input logic [31:0] y, input logic [31:0] y,