// Amazon FPGA Hardware Development Kit // // Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. // // Licensed under the Amazon Software License (the "License"). You may not use // this file except in compliance with the License. A copy of the License is // located at // // http://aws.amazon.com/asl/ // // or in the "license" file accompanying this file. This file is distributed on // an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or // implied. See the License for the specific language governing permissions and // limitations under the License. module axi_mem_model #( parameter NUM_MEM = 3, parameter ECC_EN = 0, parameter ECC_ADDR_HI = 'h410, parameter ECC_ADDR_LO = 'h400, parameter RND_ECC_EN = 0, parameter RND_ECC_WEIGHT = 100) ( input clk_core, input rst_n, input[15:0] cl_sh_ddr_awid[NUM_MEM-1:0], input[63:0] cl_sh_ddr_awaddr[NUM_MEM-1:0], input[7:0] cl_sh_ddr_awlen[NUM_MEM-1:0], input[2:0] cl_sh_ddr_awsize[NUM_MEM-1:0], input[1:0] cl_sh_ddr_awburst[NUM_MEM-1:0], //Note only INCR/WRAP supported. If un-supported mode on this signal, will default to INCR //input[10:0] cl_sh_ddr_awuser[NUM_MEM-1:0], input cl_sh_ddr_awvalid[NUM_MEM-1:0], output logic[NUM_MEM-1:0] sh_cl_ddr_awready, input[15:0] cl_sh_ddr_wid[NUM_MEM-1:0], input[511:0] cl_sh_ddr_wdata[NUM_MEM-1:0], input[63:0] cl_sh_ddr_wstrb[NUM_MEM-1:0], input[NUM_MEM-1:0] cl_sh_ddr_wlast, input[NUM_MEM-1:0] cl_sh_ddr_wvalid, output logic[NUM_MEM-1:0] sh_cl_ddr_wready, output logic[15:0] sh_cl_ddr_bid[NUM_MEM-1:0], output logic[1:0] sh_cl_ddr_bresp[NUM_MEM-1:0], output logic[NUM_MEM-1:0] sh_cl_ddr_bvalid, input[NUM_MEM-1:0] cl_sh_ddr_bready, input[15:0] cl_sh_ddr_arid[NUM_MEM-1:0], input[63:0] cl_sh_ddr_araddr[NUM_MEM-1:0], input[7:0] cl_sh_ddr_arlen[NUM_MEM-1:0], input[2:0] cl_sh_ddr_arsize[NUM_MEM-1:0], //input[10:0] cl_sh_ddr_aruser[NUM_MEM-1:0], input[1:0] cl_sh_ddr_arburst[NUM_MEM-1:0], //Note only INCR/WRAP supported. If un-supported mode on this signal, will default to INCR input[NUM_MEM-1:0] cl_sh_ddr_arvalid, output logic[NUM_MEM-1:0] sh_cl_ddr_arready, output logic[15:0] sh_cl_ddr_rid[NUM_MEM-1:0], output logic[511:0] sh_cl_ddr_rdata[NUM_MEM-1:0], output logic[1:0] sh_cl_ddr_rresp[NUM_MEM-1:0], output logic[NUM_MEM-1:0] sh_cl_ddr_rlast, output logic[NUM_MEM-1:0] sh_cl_ddr_rvalid, input[NUM_MEM-1:0] cl_sh_ddr_rready ); //---------------------------------------------------------- // AXI memory model instantiation //---------------------------------------------------------- generate for (genvar gi=0; gi