Hi all, Currently I am working on understanding the HPS-FPGA bridges on the Stratix 10. I have been able to write from the hps to fpga peripherals using the LW bridge. I am now trying to send data f...
After generating the HDL and adding in a simple function into the verilog file
"
always @(posedge clk_100_out_clk_clk or posedge rst_controller_reset_out_reset) begin if (rst_controller_reset_out_reset) begin internal_reg <= 0; end else begin // Perform arithmetic (multiply by 10) internal_reg <= qsys_top_fifo_hps_to_fpga_out_csr_writedata * 10; end end
The server can see the correct input from the client, however the result is a constant "2899692286", which is curious because this is the output from the command
and the client collects a constant "4" which is also strange because I would expect that it would return "2899692286".
This leads me to believe that the fpga to hps bridge is not configured correctly, or I have put the wrong address for OUTPUT_REG in my c code, which is why I have bolded it. I am confident though that the h2f_lw bridge is working.
The Output should just multiply the input by 10, not this system ID.
Sorry about the overflow of information.
Again, any help to understand the f2h bridge would be very helpful.