1
0
mirror of https://github.com/aolofsson/oh.git synced 2025-01-17 20:02:53 +08:00
oh/axi/hdl/esaxilite.v
aolofsson 2cb3b9a29b Consolidating all axi interface in one directory
Adding interface for axi lite slave, needs content
2014-12-14 22:22:49 -05:00

86 lines
2.6 KiB
Verilog

/*
Copyright (C) 2014 Adapteva, Inc.
Contributed by Fred Huettig <fred@adapteva.com>
Contributed by Andreas Olofsson <andreas@adapteva.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope
that it will be useful,but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. You should have received a copy
of the GNU General Public License along with this program (see the file
COPYING). If not, see <http://www.gnu.org/licenses/>.
*/
module esaxilite (/*AUTOARG*/
// Outputs
s_axi_arready, s_axi_awready, s_axi_bresp, s_axi_bvalid,
s_axi_rdata, s_axi_rresp, s_axi_rvalid, s_axi_wready, mi_clk,
mi_en, mi_we, mi_addr, mi_din,
// Inputs
s_axi_aclk, s_axi_aresetn, s_axi_araddr, s_axi_arprot,
s_axi_arvalid, s_axi_awaddr, s_axi_awprot, s_axi_awvalid,
s_axi_bready, s_axi_rready, s_axi_wdata, s_axi_wstrb, s_axi_wvalid,
mi_rd_data
);
parameter RFAW = 12;
/*****************************/
/*AXI 32 bit lite interface */
/*****************************/
input s_axi_aclk;
input s_axi_aresetn;
//read address channel
input [15:0] s_axi_araddr;
input [2:0] s_axi_arprot;
output s_axi_arready;
input s_axi_arvalid;
//write address channel
input [15:0] s_axi_awaddr;
input [2:0] s_axi_awprot;
output s_axi_awready;
input s_axi_awvalid;
//buffered read response channel
input s_axi_bready;
output [1:0] s_axi_bresp;
output s_axi_bvalid;
//read channel
output [31:0] s_axi_rdata;
input s_axi_rready;
output [1:0] s_axi_rresp;
output s_axi_rvalid;
//write channel
input [31:0] s_axi_wdata;
output s_axi_wready;
input [3:0] s_axi_wstrb;
input s_axi_wvalid;
/*****************************/
/*Simple memory interface */
/*****************************/
output mi_clk;
output mi_en;
output mi_we;
output [RFAW+1:0] mi_addr;
output [31:0] mi_din;
input [31:0] mi_rd_data;
//PUT BRAM CONTROLLER HERE
assign mi_clk = s_axi_aclk;
assign mi_en = 1'b0;
assign mi_we = 1'b0;
assign mi_addr[RFAW+1:0] = 14'b0;
assign mi_din[31:0] = 32'b0;
endmodule // esaxilite