Jump to content
  • 0

Sending data to BRAM?


drkome

Question

BRAM structure I created as Verilog code, How do I send the data later to save it. I have a Zybo Z-7 Card. I have my own RISC-V processor. And I'm communicating with BRAM. All in verilog code format. But I want to throw code(instruction) to BRAM. How can I do that.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hi @drkome

There are a bunch of potential options, which depend on your final application.

BRAMs can be pre-filled with data when you create the bitstream, if you're implementing them through Verilog, this might take the form of an initial block with a $readmem statement of some kind that pulls data from a file. There are other techniques to manually load them, which can be seen here: https://support.xilinx.com/s/article/63041?language=en_US

You can add hardware to write to the BRAMs after the bitstream is programmed into the FPGA. This is very open-ended. Making the BRAMs a dual port with one port be addressable by the Zynq PS through an AXI interface is one option. Forwarding data received from PS UART through an EMIO interface is another option.

Thanks,

Arthur

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...