dknathalage / SIT329-Project

0 stars 3 forks source link

Adder #69

Closed redchillipadi closed 2 years ago

redchillipadi commented 2 years ago

I have some numbers coming through from the HPS from one channel. To use this, flash linux console version from terasic website, build the ghrd_full_template project and convert the soc file to rbf, and save the it the first partition (FAT) as soc_system.rbf. When you boot the FPGA you can log into linux as usual but also note that the LEDS are displaying the upper 8 bits from the value of channel 0.

After logging into linux, compile and run the c/read_data.c program, which displays the values from all channels separated by tab. I unsure why all have the same value, likely the value from channel 7, as connecting the pins between that channel and ground reduce all the reported values to 0.

To get these numbers into python, we could pipe it so run read_data | python nadavcode.py

Note that the console linux only has python 2.7, so we will either need to change the python code to work with the (very old and insecure) version, or install a new python interpreter