kassie
Newbie level 2
I am trying to write some code to read in a text file where I have my input stored. I am able to read it in; but I don't know how to read it only one time. After I read the first line from the file I convert the input from integer to std_logic_vector. After I read in the data I need to shift it out one bit at a time. The comments in my code should be clear enough to give an idea of how I want to shift the data out. Originally I used signals. However my compilier gave me errors so I changed to variables and it worked. I may have issues with conflicting libraries. Now that my errors are gone it doesn't appear as though I'm shifting out data. When I tried to shift out the least significant bit from the LSByte first; my variable that I pass it to doesn't change. The rate I'd like to shift out the data is at the baud rate. I have 20 bits of data that I'd like to shift one bit per clock cycle. Therefore I have used a counter. My input are decimal numbers up to 1026. I am writing this for a testbench. The testbench is supposed to input stimuls for downloading a file via serial communication link RS-422.
Code is attached
Code is attached