Forum Discussion
Hi JohnT,
Thanks for your feedback and support.
I have checked ccip_std_afu.sv ,and found that is a mapping module from CCIP MmioDin to Ethernet CSR.
But that is just a mapping module, which means the control source and source data is in the upper stream module, I think source is from c code in CPU side.
ccip_std_afu.sv works as a highspeed way to provide a road only, but data source, it can connect different modules but cannot know what data being delivered.
So with that ccip_std_afu.sv,still cann’t fig out what specific value being write to CSR. Thanks
Jim
always @(posedge clk or posedge pck_cp2af_softReset_T1)
begin
if (pck_cp2af_softReset_T1)
begin
afu_init <= 'b0;
ctrl_addr <= 'b0;
wr_data <= 'b0;
afu_scratch <= 'b0;
end
else
begin
if (cp2csr_MmioWrEn)
case (csr_addr_8B[3:0])
AFU_INIT [6:3]: afu_init <= cp2csr_MmioDin;
ETH_CTRL_ADDR[6:3]: ctrl_addr <= cp2csr_MmioDin[31:0];
ETH_WR_DATA [6:3]: wr_data <= cp2csr_MmioDin[31:0];
AFU_SCRATCH [6:3]: afu_scratch <= cp2csr_MmioDin;
default: ;
endcase
end
end