Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17042 Discussions

Text File transfer over RS232

Altera_Forum
Honored Contributor II
3,272 Views

Hi All, 

 

How can I send a text file (.txt) from PC to the SRAM on FPGA board through RS232? Any codes or books for reference?? 

 

Thanks! :)
0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
1,949 Views

Hi,  

The SRAM on FPGA is for configuration (for ex. Cyclone serie). 

 

You send a text file : through RS232, you send characters. 

 

If you mean those 4kB of SRAM blocks, you can :  

- instantiate those blocks (see megawizard) and create logic... 

- OR employ a processor like NIOS II. Maybe the simplest solution (RS232, you can use internal RAM blocks for memory).
0 Kudos
Altera_Forum
Honored Contributor II
1,949 Views

Hi mmTsuchi, 

 

I will explain my task clearer. I need to design a mechanism to download a text file to DE1 board via RS232 and the file will be saved in SRAM. I understand that the DE1 board will be the receiver. But where will be the data sent from? (like as transmitter)? I am thinking about using Hyper Terminal to send the file. Are there any other ways to send the file? 

 

Thanks!:)
0 Kudos
Altera_Forum
Honored Contributor II
1,949 Views

Hi, 

 

Do You mean a extern SRAM component (like Cypress for example) ? 

And not the "included" SRAM in Cyclone series. 

And Overall, you ask : how could you transmit a txt file from PC to Fpga Board. 

 

On the PC, you can use hyperterminal as you said. See menus. This is, in my opinion, the simplest method. 

You can use a software specially built for transmit files. Not very secure. 

You can use scripts. 

There are many solutions. If you want to keep it simple, use hyper terminal. Very Easy to understand.
0 Kudos
Altera_Forum
Honored Contributor II
1,949 Views

i couldn't recommend HyperTerminal to anyone. i like RealTerm: http://realterm.sourceforge.net/

0 Kudos
Altera_Forum
Honored Contributor II
1,949 Views

Hi, 

 

The SRAM chip is on the DE1 board itself. After downloading the file, maybe using RealTerm, then the file will be saved on the SRAM chip.Here are my problems: 

 

1. How do I load the file from PC to the board through RS232? Is it just load the file using RealTerm and transfer, just that simple? 

 

2. How can I make sure that the file already been loaded to the SRAM? What code i have to write to check? 

 

Thanks!
0 Kudos
Altera_Forum
Honored Contributor II
1,949 Views

The RealTerm application can take any file and transmit it's contents to your DE1 board over RS-232: http://realterm.sourceforge.net/#sending_files 

Just that simple. 

 

What your DE1 board will with the bytes it's receiving... it's up to the design you've loaded in the FPGA.
0 Kudos
Reply