2

Is there a script to upload a *.pof file using TCL Scripting through Quartus Programmer on my FPGA?

Preferably from the command line because i want integrate it into my custom software.

Qiu
  • 5,651
  • 10
  • 49
  • 56
Antonio
  • 1,181
  • 4
  • 15
  • 34

1 Answers1

5

If you just want a command-line utility you can run quartus_pgm like this:

quartus_pgm -z --mode=JTAG --operation="p;/path/to/image.sof@2"

where @2 indicates the device in the JTAG chain to program. You might also be interested in quartus_jli which writes JAM files.

For full details look at the Quartus II Scripting Reference Manual. I'm not sure whether you can use the JTAG package directly from TCL though, the documentation suggests only from a shell in SignalTap (see table 3).

Chiggs
  • 2,824
  • 21
  • 31
  • thanks chiggs, the pof file is supported using this command line? – Antonio Apr 29 '14 at 17:10
  • 2
    @Antonio : I've only used quartus_pgm with *.sof files but poking around a bit I found this "The programmer (quartus_pgm) will use one of the valid supported file format: SOF, POF, jam, and JAM Byte-Code File (.jbc)." so Chiggs solution should work for you. – Ciano Apr 29 '14 at 17:36
  • Hi Chiggs, Radix, i make the script for my pourpose: quartus_pgm --cable="USB-Blaster [USB-0]" --mode=AS --option="p;C:\folder\Quartus\file.pof" – Antonio May 20 '14 at 13:48