up_axi_update: ADDRESS_WIDTH parameter is now a localparam
ADDRESS_WIDTH is now AXI_ADDRESS_WIDTH - 2; up_axi instantiations will set AXI_ADDRESS_WIDTH instead of ADDRESS_WIDTH;main
parent
14a4acfd0e
commit
fe09acaa2f
|
@ -401,7 +401,7 @@ module axi_ad5766 #(
|
|||
// AXI wrapper
|
||||
|
||||
up_axi #(
|
||||
.ADDRESS_WIDTH (14)
|
||||
.AXI_ADDRESS_WIDTH (16)
|
||||
) i_up_axi (
|
||||
.up_rstn (up_rstn),
|
||||
.up_clk (spi_clk),
|
||||
|
|
|
@ -96,7 +96,6 @@ module axi_ad7616 #(
|
|||
localparam SERIAL = 0;
|
||||
localparam PARALLEL = 1;
|
||||
localparam NEG_EDGE = 1;
|
||||
localparam UP_ADDRESS_WIDTH = 14;
|
||||
|
||||
// internal registers
|
||||
|
||||
|
@ -110,9 +109,9 @@ module axi_ad7616 #(
|
|||
wire up_rstn;
|
||||
wire up_rst;
|
||||
wire up_rreq_s;
|
||||
wire [(UP_ADDRESS_WIDTH-1):0] up_raddr_s;
|
||||
wire [13:0] up_raddr_s;
|
||||
wire up_wreq_s;
|
||||
wire [(UP_ADDRESS_WIDTH-1):0] up_waddr_s;
|
||||
wire [13:0] up_waddr_s;
|
||||
wire [31:0] up_wdata_s;
|
||||
|
||||
wire up_wack_if_s;
|
||||
|
@ -214,8 +213,7 @@ module axi_ad7616 #(
|
|||
.DATA_WIDTH (8),
|
||||
.NUM_OF_SDI (NUM_OF_SDI),
|
||||
.NUM_OFFLOAD(1),
|
||||
.MM_IF_TYPE(1),
|
||||
.UP_ADDRESS_WIDTH (UP_ADDRESS_WIDTH)
|
||||
.MM_IF_TYPE(1)
|
||||
) i_axi_spi_engine (
|
||||
.up_clk (up_clk),
|
||||
.up_rstn (up_rstn),
|
||||
|
@ -432,7 +430,7 @@ module axi_ad7616 #(
|
|||
// up bus interface
|
||||
|
||||
up_axi #(
|
||||
.ADDRESS_WIDTH (UP_ADDRESS_WIDTH)
|
||||
.AXI_ADDRESS_WIDTH (16)
|
||||
) i_up_axi (
|
||||
.up_rstn (up_rstn),
|
||||
.up_clk (up_clk),
|
||||
|
|
|
@ -148,8 +148,7 @@ module axi_adc_decimate #(
|
|||
.up_rack (up_rack));
|
||||
|
||||
up_axi #(
|
||||
.AXI_ADDRESS_WIDTH(7),
|
||||
.ADDRESS_WIDTH(5)
|
||||
.AXI_ADDRESS_WIDTH(7)
|
||||
) i_up_axi (
|
||||
.up_rstn (up_rstn),
|
||||
.up_clk (up_clk),
|
||||
|
|
|
@ -456,8 +456,7 @@ module axi_adc_trigger #(
|
|||
.up_rack(up_rack));
|
||||
|
||||
up_axi #(
|
||||
.AXI_ADDRESS_WIDTH(7),
|
||||
.ADDRESS_WIDTH(5)
|
||||
.AXI_ADDRESS_WIDTH(7)
|
||||
) i_up_axi (
|
||||
.up_rstn (up_rstn),
|
||||
.up_clk (up_clk),
|
||||
|
|
|
@ -171,8 +171,7 @@ module axi_dac_interpolate #(
|
|||
.up_rack (up_rack));
|
||||
|
||||
up_axi #(
|
||||
.AXI_ADDRESS_WIDTH(7),
|
||||
.ADDRESS_WIDTH(5)
|
||||
.AXI_ADDRESS_WIDTH(7)
|
||||
) i_up_axi (
|
||||
.up_rstn (up_rstn),
|
||||
.up_clk (up_clk),
|
||||
|
|
|
@ -261,8 +261,7 @@ axi_dmac_regmap_request #(
|
|||
);
|
||||
|
||||
up_axi #(
|
||||
.AXI_ADDRESS_WIDTH (12),
|
||||
.ADDRESS_WIDTH (9)
|
||||
.AXI_ADDRESS_WIDTH (12)
|
||||
) i_up_axi (
|
||||
.up_rstn(s_axi_aresetn),
|
||||
.up_clk(s_axi_aclk),
|
||||
|
|
|
@ -183,7 +183,7 @@ assign up_irq_source_clear = (up_wreq_s == 1'b1 && up_waddr_s == 8'h11) ? up_wda
|
|||
assign counter_resetn = (pwm_change_done ) ? (!tacho_edge_det) : ((!pwm_change_done) & (!counter_overflow));
|
||||
|
||||
up_axi #(
|
||||
.ADDRESS_WIDTH(8))
|
||||
.AXI_ADDRESS_WIDTH(10))
|
||||
i_up_axi (
|
||||
.up_rstn (s_axi_aresetn),
|
||||
.up_clk (up_clk),
|
||||
|
|
|
@ -350,8 +350,7 @@ module axi_logic_analyzer (
|
|||
// axi interface
|
||||
|
||||
up_axi #(
|
||||
.AXI_ADDRESS_WIDTH(7),
|
||||
.ADDRESS_WIDTH(5)
|
||||
.AXI_ADDRESS_WIDTH(7)
|
||||
) i_up_axi (
|
||||
.up_rstn (up_rstn),
|
||||
.up_clk (up_clk),
|
||||
|
|
|
@ -132,7 +132,7 @@ module axi_pulse_gen #(
|
|||
.pulse (pulse));
|
||||
|
||||
up_axi #(
|
||||
.ADDRESS_WIDTH(14))
|
||||
.AXI_ADDRESS_WIDTH(16))
|
||||
i_up_axi (
|
||||
.up_rstn (up_rstn),
|
||||
.up_clk (up_clk),
|
||||
|
|
|
@ -37,7 +37,6 @@
|
|||
|
||||
module up_axi #(
|
||||
|
||||
parameter ADDRESS_WIDTH = 14,
|
||||
parameter AXI_ADDRESS_WIDTH = 16) (
|
||||
|
||||
// reset and clocks
|
||||
|
@ -76,6 +75,10 @@ module up_axi #(
|
|||
input [31:0] up_rdata,
|
||||
input up_rack);
|
||||
|
||||
// local parameters
|
||||
|
||||
localparam ADDRESS_WIDTH = AXI_ADDRESS_WIDTH - 2;
|
||||
|
||||
// internal registers
|
||||
|
||||
reg up_axi_awready_int = 'd0;
|
||||
|
|
|
@ -123,7 +123,6 @@ module axi_adxcvr #(
|
|||
.up_rack (up_rack));
|
||||
|
||||
up_axi #(
|
||||
.ADDRESS_WIDTH (10),
|
||||
.AXI_ADDRESS_WIDTH (12)
|
||||
) i_axi (
|
||||
.up_rstn (up_rstn),
|
||||
|
|
|
@ -133,8 +133,7 @@ module ad_ip_jesd204_tpl_adc_regmap #(
|
|||
// up bus interface
|
||||
|
||||
up_axi #(
|
||||
.AXI_ADDRESS_WIDTH (12),
|
||||
.ADDRESS_WIDTH (10)
|
||||
.AXI_ADDRESS_WIDTH (12)
|
||||
) i_up_axi (
|
||||
.up_clk (up_clk),
|
||||
.up_rstn (up_rstn),
|
||||
|
|
|
@ -120,8 +120,7 @@ module ad_ip_jesd204_tpl_dac_regmap #(
|
|||
// up bus interface
|
||||
|
||||
up_axi #(
|
||||
.AXI_ADDRESS_WIDTH (12),
|
||||
.ADDRESS_WIDTH (10)
|
||||
.AXI_ADDRESS_WIDTH (12)
|
||||
) i_up_axi (
|
||||
.up_clk (up_clk),
|
||||
.up_rstn (up_rstn),
|
||||
|
|
|
@ -138,8 +138,7 @@ wire up_reset;
|
|||
wire up_reset_synchronizer;
|
||||
|
||||
up_axi #(
|
||||
.AXI_ADDRESS_WIDTH (14),
|
||||
.ADDRESS_WIDTH (12)
|
||||
.AXI_ADDRESS_WIDTH (14)
|
||||
) i_up_axi (
|
||||
.up_rstn(~up_reset),
|
||||
.up_clk(s_axi_aclk),
|
||||
|
|
|
@ -137,8 +137,7 @@ wire [4:0] up_irq_trigger;
|
|||
assign up_irq_trigger[4:0] = 5'b00000;
|
||||
|
||||
up_axi #(
|
||||
.AXI_ADDRESS_WIDTH (14),
|
||||
.ADDRESS_WIDTH (12)
|
||||
.AXI_ADDRESS_WIDTH (14)
|
||||
) i_up_axi (
|
||||
.up_rstn(~up_reset),
|
||||
.up_clk(s_axi_aclk),
|
||||
|
|
|
@ -42,7 +42,6 @@ module axi_spi_engine #(
|
|||
parameter SDO_FIFO_ADDRESS_WIDTH = 5,
|
||||
parameter SDI_FIFO_ADDRESS_WIDTH = 5,
|
||||
parameter MM_IF_TYPE = 0,
|
||||
parameter UP_ADDRESS_WIDTH = 14,
|
||||
parameter ASYNC_SPI_CLK = 0,
|
||||
parameter NUM_OFFLOAD = 0,
|
||||
parameter OFFLOAD0_CMD_MEM_ADDRESS_WIDTH = 4,
|
||||
|
@ -80,11 +79,11 @@ module axi_spi_engine #(
|
|||
input up_clk,
|
||||
input up_rstn,
|
||||
input up_wreq,
|
||||
input [(UP_ADDRESS_WIDTH-1):0] up_waddr,
|
||||
input [13:0] up_waddr,
|
||||
input [31:0] up_wdata,
|
||||
output up_wack,
|
||||
input up_rreq,
|
||||
input [(UP_ADDRESS_WIDTH-1):0] up_raddr,
|
||||
input [13:0] up_raddr,
|
||||
output [31:0] up_rdata,
|
||||
output up_rack,
|
||||
|
||||
|
@ -165,8 +164,8 @@ module axi_spi_engine #(
|
|||
wire up_wreq_s;
|
||||
wire up_rreq_s;
|
||||
wire [31:0] up_wdata_s;
|
||||
wire [(UP_ADDRESS_WIDTH-1):0] up_waddr_s;
|
||||
wire [(UP_ADDRESS_WIDTH-1):0] up_raddr_s;
|
||||
wire [13:0] up_waddr_s;
|
||||
wire [13:0] up_raddr_s;
|
||||
|
||||
// Scratch register
|
||||
reg [31:0] up_scratch = 'h00;
|
||||
|
@ -184,7 +183,7 @@ module axi_spi_engine #(
|
|||
// interface wrapper
|
||||
|
||||
up_axi #(
|
||||
.ADDRESS_WIDTH (UP_ADDRESS_WIDTH)
|
||||
.AXI_ADDRESS_WIDTH (16)
|
||||
) i_up_axi (
|
||||
.up_rstn(rstn),
|
||||
.up_clk(clk),
|
||||
|
|
|
@ -1927,7 +1927,7 @@ module axi_adxcvr #(
|
|||
.up_rdata (up_rdata),
|
||||
.up_rack (up_rack));
|
||||
|
||||
up_axi #(.ADDRESS_WIDTH (10)) i_axi (
|
||||
up_axi #(.AXI_ADDRESS_WIDTH (12)) i_axi (
|
||||
.up_rstn (up_rstn),
|
||||
.up_clk (up_clk),
|
||||
.up_axi_awvalid (s_axi_awvalid),
|
||||
|
|
|
@ -165,7 +165,7 @@ module axi_xcvrlb #(
|
|||
end
|
||||
endgenerate
|
||||
|
||||
up_axi #(.ADDRESS_WIDTH (8)) i_axi (
|
||||
up_axi #(.AXI_ADDRESS_WIDTH (10)) i_axi (
|
||||
.up_rstn (up_rstn),
|
||||
.up_clk (up_clk),
|
||||
.up_axi_awvalid (s_axi_awvalid),
|
||||
|
|
Loading…
Reference in New Issue