- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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! :)Link Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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).- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!:)- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page