charita vyshnavi N
Newbie level 4
- Joined
- Feb 19, 2015
- Messages
- 7
- Helped
- 0
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 3
- Activity points
- 63
hai sir/madam.....
i have BCH code which run for (15,7,2) set which is implemented in VHDL and it is dumped in FPGA kit.my task is to sending 15 bits as input to the bch code and then separating them as msg and parity. after seperation i will take msg seperately and generate the parity (i will see the output parity on LED on FPGA board) after that i will compare the old parity and newly generated parity to know about the msg is correpted or not, if they are not same then i will say there is an error in the msg.
i tagged the 15 bits in the program and i am sending to fpga, but if i want to send another set of 15 bits then i have to tag them in the program and then again have to dump the entire program in the fpga.
for every new data i have to dump the same logic again and again. instead of dumping the same logic again and again i created a text file with 10 lines of binary information each line consists of 15 bits (input bits). now i wanted to send each line of binary information to BCH logic as an input.
i know interfacing of pc with fpga kit because luckly i have a fpga kit with uart interfacing, so i connected with a USB cable simply.
now
Q) while reading the text file, the first line first bit is sending via UART but UART accepts only ascii values so how to convert ascii to binary to send to BCH logic.
please give me reply as early as possible .....
thank u
i have BCH code which run for (15,7,2) set which is implemented in VHDL and it is dumped in FPGA kit.my task is to sending 15 bits as input to the bch code and then separating them as msg and parity. after seperation i will take msg seperately and generate the parity (i will see the output parity on LED on FPGA board) after that i will compare the old parity and newly generated parity to know about the msg is correpted or not, if they are not same then i will say there is an error in the msg.
i tagged the 15 bits in the program and i am sending to fpga, but if i want to send another set of 15 bits then i have to tag them in the program and then again have to dump the entire program in the fpga.
for every new data i have to dump the same logic again and again. instead of dumping the same logic again and again i created a text file with 10 lines of binary information each line consists of 15 bits (input bits). now i wanted to send each line of binary information to BCH logic as an input.
i know interfacing of pc with fpga kit because luckly i have a fpga kit with uart interfacing, so i connected with a USB cable simply.
now
Q) while reading the text file, the first line first bit is sending via UART but UART accepts only ascii values so how to convert ascii to binary to send to BCH logic.
please give me reply as early as possible .....
thank u