EmbDev.net

Forum: FPGA, VHDL & Verilog Sending binary data from Matlab to FPGA using the serial port


Author: Isamel (Guest)
Posted on:

Rate this post
0 useful
not useful
Hello,
In fact, I'm working on a project which aims to implement a 
reconfigurable Zigbee tranceiver on XUPV5-LX110T Evaluation platform 
which integrates a Virtex 5 FPGA. I am currently in the phase of real 
test, so now I just want to test my transmitter.
First, I want to send my binary data from Matlab (computer) to FPGA. The 
medium of communication is the RS232 serial link. Is there a solution in 
Matlab (communication protocol) that sends a binary stream on this port 
knowing my main entrance on FPGA is 4 bits?
Secondly, how to create a PRBS (Pseudo Random Binary Sequence) in Matlab 
(an output of 4 bits) to integrate it into the communication protocol?
And thank you in advance for everyone.
Regards,
Isamel

Author: Amarathunga (Guest)
Posted on:

Rate this post
0 useful
not useful
I want using verilog

Author: Lothar Miller (lkmiller) (Moderator)
Posted on:

Rate this post
0 useful
not useful
Isamel wrote:
> Is there a solution in Matlab (communication protocol) that sends a
> binary stream on this port knowing my main entrance on FPGA is 4 bits?
Is the computers interface able to handle that specific 
"4-bit-transmission"?
RS232 is a byte oriented interface. I don't think that your 
"matlab-computer" is able to transmit half-bytes.
You will have to wrap your specific data into your specific protocol. 
And you will have to decode that protocol in the FPGA...

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.