Forum Discussion
Altera_Forum
Honored Contributor
19 years agoslacker
And I find that there is some document,saying that:description without netlist can't work (just flash flows,is "flash flow"means justs configure flash,let alone other like:Net TabDevices TabGroups TabPass Throughs Tab Files Tab),unless modify class.ptf,which is generated by description editor. Could anyone kow how to modify or read class.ptf ---------------------------------------------- document I found on net: Flash Programmer Flash only flow failure in IDE—Updated December 19, 2005 The Flash only flow of the Board Description Editor is used to run the Nios II Flash Programmer on a custom board in IDE mode. When the Board Description Editor is run in the Flash Flow only, wherein no board netlist (wirelist) is provided, the resulting PTF file is missing some entries which are required for successful system generation in SOPC Builder. A subsequent attempt to generate in SOPC Builder will issue the following error: C:/altera/quartus51/sopc_builder/bin/europa/e_project.pm 310 CALLED (e_project::device_family) WHERE <=== 'expected exactly one argument' OCCURRED on C:/altera/quartus51/sopc_builder/bin/europa/e_project.pm 1313 Workaround: The workaround is to use the Flash Programmer via command line or hand-edit the board description PTF file as described below after running the Board Description Editor. 1. Run through the Flash Flow of the Board Description Editor as instructed in the Board Description Editor (PDF) chapter of the SOPC Builder Handbook. 2. Close SOPC Builder 3. In a text editor, open the .ptf file created by the Board Description Editor. 4. In the CLASS/BOARD_DEFAULTS section of the .ptf file, add the following entries. o device_family = "<device family>"; suitable values for <device family> are CYCLONE, CYCLONEII, STRATIX, STRATIXII, etc. o For each CFI or EPCS flash entered in the board description, create a REFDES section with an arbitrary base address, such as just "0". o Workaround_example.txt shows an example of the edits. 5. Save and close the .ptf file after making the edits. 6. Re-open the system in SOPC Builder, select the newly created board description in the "Target" section, and then click Generate. ========================================================== CLASS my_1c20_no_wirelist_board { BOARD_DEFAULTS { class = "my_1c20_no_wirelist_board"; class_version = "1.0"; altera_avalon_epcs_flash_controller { reference_designators = "U59"; } altera_avalon_cfi_flash { reference_designators = "U5"; } reference_designators = "U59,U5"; initial_system_file = ""; # >> Add these lines or equivalent << >> device_family = "CYCLONE"; >> REFDES U5 >> { >> base = "0"; >> } >> REFDES U59 >> { >> base = "0"; >> } # >> End add lines << CONFIGURATION user { ========================================================== ---------------------------------------------- thanks --Tommy