1
0
mirror of https://github.com/bmartini/zynq-axis.git synced 2024-09-05 19:19:27 +08:00

Connect axis read to cfg reg

This *should* allow for the axis port to read data the the memory and
transmit the read value to the host via the cfg bus.
This commit is contained in:
Berin Martini 2015-01-06 17:13:34 -05:00
parent 7e6ecfbb22
commit f435570745

View File

@ -39,8 +39,9 @@ module zedboard_axis
CFG_AXIS_DATA = 1,
CFG_HP0_DST_CNT = 2,
CFG_HP0_SRC_CNT = 3,
CFG_HP0_DATA = 4,
CFG_EMPTY = 5;
CFG_HP0_DST_DATA = 4,
CFG_HP0_SRC_DATA = 5,
CFG_EMPTY = 6;
genvar i;
@ -293,6 +294,7 @@ module zedboard_axis
case (cfg_rd_addr)
CFG_HP0_DST_CNT : cfg_rd_data <= axis_hp0_dst_cnt;
CFG_HP0_SRC_CNT : cfg_rd_data <= axis_hp0_src_cnt;
CFG_HP0_SRC_DATA : cfg_rd_data <= sys_hp0_src_data;
default : cfg_rd_data <= cfg_hold[cfg_rd_addr];
endcase
@ -373,9 +375,9 @@ module zedboard_axis
);
assign sys_hp0_dst_data = cfg_hold[CFG_HP0_DATA];
assign sys_hp0_dst_valid = cfg_hold_en[CFG_HP0_DATA];
assign sys_hp0_src_ready = 1'b0;
assign sys_hp0_dst_data = cfg_hold[CFG_HP0_DST_DATA];
assign sys_hp0_dst_valid = cfg_hold_en[CFG_HP0_DST_DATA];
assign sys_hp0_src_ready = cfg_rd_en & (CFG_HP0_SRC_DATA == cfg_rd_addr);
// counts number of system data sent from AXIS port