Skip to content
Snippets Groups Projects
Commit e1f93223 authored by dam1n19's avatar dam1n19
Browse files

Added aes specific files back in

parent 9045a8d8
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@
#-----------------------------------------------------------------------------
# Accelerator Engine -- Add Your Accelerator Environment Variable HERE!
#export ACCELERATOR_DIR="$SOCLABS_PROJECT_DIR/youraccelerator"
export ACCELERATOR_DIR="$SOCLABS_PROJECT_DIR/secworks-aes"
# Accelerator Wrapper
export SOCLABS_WRAPPER_TECH_DIR="$SOCLABS_PROJECT_DIR/accelerator_wrapper_tech"
......
......@@ -14,10 +14,10 @@
// ============= Accelerator Module search path =============
// ! Point this to your Accelerator RTL
//+incdir+$(ACCELERATOR_DIR)/src/rtl
+incdir+$(ACCELERATOR_DIR)/src/rtl
// ! Point this to your Wrapper RTL
//$(SOCLABS_PROJECT_DIR)/wrapper/src/your_wrapper.v
$(SOCLABS_PROJECT_DIR)/wrapper/src/soclabs_ahb_aes128_ctrl.v
// ! Point this to your Subsystem RTL
//$(SOCLABS_PROJECT_DIR)/system/src/accelerator_subsystem.v
\ No newline at end of file
$(SOCLABS_PROJECT_DIR)/system/src/accelerator_subsystem.v
\ No newline at end of file
......@@ -11,6 +11,7 @@
# Each Repo needs to have its branch set manually in here - they will defaultly be checked out to main
# Project Repository Subrepository Branch Index
# Add your Accelerator Repository here
secworks-aes: master
nanosoc_tech: main
accelerator_wrapper_tech: main
......
//-----------------------------------------------------------------------------
// SoC Labs Accelerator Subsystem for SecWorks AES-128 Accelerator
// A joint work commissioned on behalf of SoC Labs; under Arm Academic Access license.
//
// Contributors
//
// David Mapstone (d.a.mapstone@soton.ac.uk)
// David Flynn (d.w.flynn@soton.ac.uk)
//
// Copyright (C) 2023; SoC Labs (www.soclabs.org)
//-----------------------------------------------------------------------------
module accelerator_subsystem #(
parameter SYS_ADDR_W = 32,
parameter SYS_DATA_W = 32,
parameter ACC_ADDR_W = 16,
parameter IRQ_NUM = 4
) (
input wire HCLK, // Clock
input wire HRESETn, // Reset
// AHB connection to Initiator
input wire HSEL,
input wire [SYS_ADDR_W-1:0] HADDR,
input wire [1:0] HTRANS,
input wire [2:0] HSIZE,
input wire [3:0] HPROT,
input wire HWRITE,
input wire HREADY,
input wire [SYS_DATA_W-1:0] HWDATA,
output wire HREADYOUT,
output wire HRESP,
output wire [SYS_DATA_W-1:0] HRDATA,
// Data Request Signal to DMAC
output wire [1:0] EXP_DRQ,
input wire [1:0] EXP_DLAST,
// Interrupts
output wire [IRQ_NUM-1:0] EXP_IRQ
);
//--------------------------------------
// AES Accelerator Wrapper
//--------------------------------------
soclabs_ahb_aes128_ctrl u_exp_aes128 (
.ahb_hclk (HCLK),
.ahb_hresetn (HRESETn),
.ahb_hsel (HSEL),
.ahb_haddr16 (HADDR[ACC_ADDR_W-1:0]),
.ahb_htrans (HTRANS),
.ahb_hwrite (HWRITE),
.ahb_hsize (HSIZE),
.ahb_hprot (HPROT),
.ahb_hwdata (HWDATA),
.ahb_hready (HREADY),
.ahb_hrdata (HRDATA),
.ahb_hreadyout (HREADYOUT),
.ahb_hresp (HRESP),
.drq_ipdma128 (EXP_DRQ[0]),
.dlast_ipdma128 (EXP_DLAST[0]),
.drq_opdma128 (EXP_DRQ[1]),
.dlast_opdma128 (EXP_DLAST[1]),
.irq_key128 (EXP_IRQ[0]),
.irq_ip128 (EXP_IRQ[1]),
.irq_op128 (EXP_IRQ[2]),
.irq_error (EXP_IRQ[3]),
.irq_merged ( )
);
endmodule
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment