mirror of
https://github.com/aolofsson/oh.git
synced 2025-01-17 20:02:53 +08:00
Fixing read response address
-using `define from elink_regmap (ie 'D')
This commit is contained in:
parent
7f0f858b92
commit
24d824f080
@ -453,7 +453,6 @@ module emaxi(/*autoarg*/
|
|||||||
begin
|
begin
|
||||||
txrr_access_reg <= m_axi_rready & m_axi_rvalid;
|
txrr_access_reg <= m_axi_rready & m_axi_rvalid;
|
||||||
txrr_access <= txrr_access_reg;//added pipeline stage for data
|
txrr_access <= txrr_access_reg;//added pipeline stage for data
|
||||||
|
|
||||||
// steer read data according to size & host address lsbs
|
// steer read data according to size & host address lsbs
|
||||||
//all data needs to be right aligned
|
//all data needs to be right aligned
|
||||||
//(this is due to the Epiphany right aligning all words)
|
//(this is due to the Epiphany right aligning all words)
|
||||||
|
@ -18,7 +18,7 @@ module esaxi (/*autoarg*/
|
|||||||
parameter [11:0] ID = 12'h810;
|
parameter [11:0] ID = 12'h810;
|
||||||
parameter IDW = 12;
|
parameter IDW = 12;
|
||||||
parameter PW = 104;
|
parameter PW = 104;
|
||||||
parameter [15:0] RETURN_ADDR = {ID,4'hE};
|
parameter [15:0] RETURN_ADDR = {ID,`EGROUP_RR};
|
||||||
parameter AW = 32;
|
parameter AW = 32;
|
||||||
parameter DW = 32;
|
parameter DW = 32;
|
||||||
|
|
||||||
@ -211,7 +211,7 @@ module esaxi (/*autoarg*/
|
|||||||
begin
|
begin
|
||||||
if(~s_axi_aresetn)
|
if(~s_axi_aresetn)
|
||||||
begin
|
begin
|
||||||
s_axi_awready <= 1'b0; //TODO: why not set default as 1?
|
s_axi_awready <= 1'b1; //TODO: why not set default as 1?
|
||||||
write_active <= 1'b0;
|
write_active <= 1'b0;
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
@ -428,8 +428,10 @@ module esaxi (/*autoarg*/
|
|||||||
// -- returned in order, we will only allow
|
// -- returned in order, we will only allow
|
||||||
// -- one at a time.
|
// -- one at a time.
|
||||||
|
|
||||||
|
//TODO: Fix this nonsense, need to improve performance
|
||||||
|
//Allow up to N outstanding transactions, use ID to match them up
|
||||||
|
//Need to look at txrd_wait signal
|
||||||
assign txrd_write = 1'b0;
|
assign txrd_write = 1'b0;
|
||||||
|
|
||||||
always @( posedge s_axi_aclk )
|
always @( posedge s_axi_aclk )
|
||||||
if (~s_axi_aresetn)
|
if (~s_axi_aresetn)
|
||||||
begin
|
begin
|
||||||
|
@ -168,7 +168,7 @@ module etx_arbiter (/*AUTOARG*/
|
|||||||
assign write_in = etx_mux[1];
|
assign write_in = etx_mux[1];
|
||||||
|
|
||||||
always @ (posedge clk)
|
always @ (posedge clk)
|
||||||
if ((write_in & ~etx_wr_wait) | (~write_in & ~etx_rd_wait))
|
if (access_in & (write_in & ~etx_wr_wait) | (~write_in & ~etx_rd_wait))
|
||||||
begin
|
begin
|
||||||
etx_access <= access_in;
|
etx_access <= access_in;
|
||||||
etx_packet[PW-1:0] <= etx_mux[PW-1:0];
|
etx_packet[PW-1:0] <= etx_mux[PW-1:0];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user