Shop OBEX P1 Docs P2 Docs Learn Events
ROM Hex file format required for Quartus Verilog - Page 2 — Parallax Forums

ROM Hex file format required for Quartus Verilog

2»

Comments

  • jmgjmg Posts: 15,173
    edited 2015-04-10 23:33
    ozpropdev wrote: »
    Tried .qex too. Same result. File must use .hex extension.
    You do have to wonder
    a) who writes this stuff ?
    b) who checks it before it is released ?
  • Cluso99Cluso99 Posts: 18,069
    edited 2015-04-11 16:21
    Ok, I believe I have resolved the Quartus required Intel Hex format issues.

    Quartus II V14.0 (under Windows 8.1 64-bit) requires the following...

    1. The format is :LL AAAA XXXXXXXX CC
    ..... LL = length (hex) of the hex data on this line (bytes)
    ..... AAAA = address (hex) of the location of the first byte of this line (longs) *** (ie addr<<2) ***
    ..... CC = checksum byte (two's complement of the sum of all bytes including the length and address)
    2. A length of 4 bytes per line (otherwise reports warnings or fails)
    3. The 4 byte address is in longs (ie >>2)
    4. The address starts at $0000 (not certain this is a requirement)
    5. Spaces in data lines are ignored
    4. Comment lines beginning with "// " are ignored
    5. You cannot have comments at the end of a data line

    If you follow these rules, hopefully you should not get any warnings or errors.

    I have posted working rom files on this thread
    http://forums.parallax.com/showthread.php/160754-Latest-P1V-git-files-Unscrambled-ROMs-Faster-Spin-Interpreter
Sign In or Register to comment.