UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor sebbarpar
Visitor
108 Views
Registered: ‎01-06-2019

Read from file not working

Jump to solution

Hello, The code attached is a very simple program designed to read lines of data from a file. However, it does not read anything. If anyone could please help me it would be greatly appreciated. Attached is also the file it is supposed to read from.

Thanks.

1 Solution

Accepted Solutions
Visitor sebbarpar
Visitor
65 Views
Registered: ‎01-06-2019

Re: Read from file not working

Jump to solution

Yes, so sorry! Here they are.

0 Kudos
3 Replies
Xilinx Employee
Xilinx Employee
82 Views
Registered: ‎05-14-2008

Re: Read from file not working

Jump to solution

Forgot to attach the files?

-vivian

Visitor sebbarpar
Visitor
66 Views
Registered: ‎01-06-2019

Re: Read from file not working

Jump to solution

Yes, so sorry! Here they are.

0 Kudos
Scholar u4223374
Scholar
36 Views
Registered: ‎04-26-2015

Re: Read from file not working

Jump to solution

First, is this meant to be code that's implemented on the FPGA? Or just testbench code? If it's meant to be on the FPGA, none of the file access stuff will work - the FPGA doesn't have access to your PC's HDD.

Second, the thing that immediately stands out to me (as someone with virtually no VHDL knowledge) is that the code is looking for a file called input_vectors.txt, but the file attached is called censusl.txt. Might be worth checking that you've got the right filename.