Sophia_123 Posted December 29, 2016 Share Posted December 29, 2016 Hi, The data width of BRAM is 32-bit,if I transfer data to BRAM in SDK,can I use the function Xil_Out8 or should Xil_Out32 ? Regards, Sophia Link to comment Share on other sites More sharing options...
D@n Posted December 29, 2016 Share Posted December 29, 2016 Why not ... int *a = bram_addr; *a = your_favorite_number; ? Dan Link to comment Share on other sites More sharing options...
sbobrowicz Posted January 7, 2017 Share Posted January 7, 2017 I've never used it, but Xil_Out8 should work just fine. Don't think you will see any performance gains over doing 32-bit accesses in your code, but if it is for convenience sake I get it. Dan's suggestion should also work, but be aware that it's behavior may change depending on what the size of "int" is (I don't know of the top of my head) and whether or not bram_addr is aligned to the size of int. I think unaligned accesses might have behavior counter-intuitive to what you would expect... Link to comment Share on other sites More sharing options...
Question
Sophia_123
Hi,
The data width of BRAM is 32-bit,if I transfer data to BRAM in SDK,can I use the function Xil_Out8 or should Xil_Out32 ?
Regards,
Sophia
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.