cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Aparna_MK
Visitor
Visitor
335 Views
Registered: ‎02-12-2021

Reading binary input from text file

Jump to solution

In one of my designs I need 1024 bits as inputs to a custom AXI peripheral which I am planning to give through an external file stored in sd card. I need to extract 32 bits each from the given 1024 bits and process it. In the Xilinx SDK I have written a code for doing the operations but each bit will be taken as a character and stored its ASCII value gets stored in the memory. How can I exactly read a binary data from an external file (I have stored the data in a text file, though I am not sure about what other ways it can be stored), process it in Zynq PS and get back the binary results in another file? How can I access the input data in the board (where exactly is it getting stored?)

 

Tags (3)
1 Solution

Accepted Solutions
abouassi
Moderator
Moderator
259 Views
Registered: ‎03-25-2019

Hi @Aparna_MK,

You can check the xilffs library and it's examples.

Best regards,
Abdallah
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution

View solution in original post

0 Kudos
1 Reply
abouassi
Moderator
Moderator
260 Views
Registered: ‎03-25-2019

Hi @Aparna_MK,

You can check the xilffs library and it's examples.

Best regards,
Abdallah
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution

View solution in original post

0 Kudos