EmbDev.net

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


von Isamel (Guest)


Rate this post
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

von Amarathunga (Guest)


Rate this post
useful
not useful
I want using verilog

von Lothar M. (Company: Titel) (lkmiller) (Moderator)


Rate this post
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...

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.