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

Text File transfer over RS232

Altera_Forum
명예로운 기여자 II
3,512 조회수

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 포인트
6 응답
Altera_Forum
명예로운 기여자 II
2,189 조회수

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 포인트
Altera_Forum
명예로운 기여자 II
2,189 조회수

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 포인트
Altera_Forum
명예로운 기여자 II
2,189 조회수

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 포인트
Altera_Forum
명예로운 기여자 II
2,189 조회수

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

0 포인트
Altera_Forum
명예로운 기여자 II
2,189 조회수

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 포인트
Altera_Forum
명예로운 기여자 II
2,189 조회수

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 포인트
응답