Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

Text File transfer over RS232

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! :)

6 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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).
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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!:)
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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!