Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vivado block design changes #18

Closed
wants to merge 5 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions rtl/wbm2axilite.v
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@
//
`default_nettype none
//
module wbm2axilite (
module wbm2axilite #(
parameter C_AXI_DATA_WIDTH = 32, // Width of the AXI R&W data
parameter C_AXI_ADDR_WIDTH = 28 // AXI Address width
) (

i_clk, i_reset,
// AXI write address channel signals
i_axi_awready, o_axi_awaddr, o_axi_awcache, o_axi_awprot, o_axi_awvalid,
Expand All @@ -58,10 +62,8 @@ module wbm2axilite (
i_wb_cyc, i_wb_stb, i_wb_we, i_wb_addr, i_wb_data, i_wb_sel,
o_wb_ack, o_wb_stall, o_wb_data, o_wb_err);

localparam C_AXI_DATA_WIDTH = 32;// Width of the AXI R&W data
parameter C_AXI_ADDR_WIDTH = 28;// AXI Address width
localparam DW = C_AXI_DATA_WIDTH;// Wishbone data width
parameter AW = C_AXI_ADDR_WIDTH-2;// WB addr width (log wordsize)
localparam AW = C_AXI_ADDR_WIDTH-2;// WB addr width (log wordsize)
input wire i_clk; // System clock
input wire i_reset;// Reset signal,drives AXI rst

Expand Down Expand Up @@ -100,12 +102,12 @@ module wbm2axilite (
input wire i_wb_cyc;
input wire i_wb_stb;
input wire i_wb_we;
input wire [(AW-1):0] i_wb_addr;
input wire [(DW-1):0] i_wb_data;
input wire [(DW/8-1):0] i_wb_sel;
input wire [(C_AXI_ADDR_WIDTH-3):0] i_wb_addr;
input wire [(C_AXI_DATA_WIDTH-1):0] i_wb_data;
input wire [(C_AXI_DATA_WIDTH/8-1):0] i_wb_sel;
output reg o_wb_ack;
output wire o_wb_stall;
output reg [(DW-1):0] o_wb_data;
output reg [(C_AXI_DATA_WIDTH-1):0] o_wb_data;
output reg o_wb_err;

//*****************************************************************************
Expand Down