Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12367 Discussions

SYSTEM/SIMULATION/MODELSIM woes

Altera_Forum
Honored Contributor I
744 Views

I am writing a class.ptf file that has a MODULE_DEFAULTS/SIMULATION/MODELSIM section as follows: 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

MODELSIM 

   TYPES 

   { 

   } 

   SETUP_COMMANDS 

   { 

      ops = "virtual type {OR AND XOR NOT MOV ADD SUB CMP LSLI LSRI ASRI ROTI MOVI ADDI SUBI CMPI LD {5&#39;b10100 ST} {5&#39;b11000 BR} BSR RET {5&#39;b11111 IFS} {default ILL}} Opcode"; 

      conds = "virtual type {nc c nz z pl mi lt ge gt le nv v hi la {default ill}} Condition"; 

      opc = "virtual function {(Opcode) (__MODULE_PATH__/next_instruction[4:0])} opcode"; 

   } 

}[/b] 

--- Quote End ---  

 

and this gets transferred over to the system ptf file as you would expect, but when I generate the project in SOPC Builder, I get a rather lengthy set of errors, starting with 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

Bareword found where operator expected at (eval 2) line 236, near "&#39;ops = "&#39;virtual" 

 

(Missing operator before virtual?) 

 

Bareword found where operator expected at (eval 2) line 236, near "&#39; ,[OR AND XOR NOT MOV ADD SUB CMP LSLI LSRI ASRI ROTI MOVI ADDI SUBI &#39;CMPI" 

 

(Missing operator before CMPI?) 

 

Bareword found where operator expected at (eval 2) line 236, near "&#39; ,[5&#39;b10100" 

 

(Missing operator before b10100?) 

 

String found where operator expected at (eval 2) line 236, near "5&#39;b11000 BR], &#39;" 

 

(Missing operator before &#39;b11000 BR], &#39;?) 

 

Bareword found where operator expected at (eval 2) line 236, near "&#39;b11000 BR], &#39;BSR" 

 

(Missing operator before BSR?) 

 

Bareword found where operator expected at (eval 2) line 237, near "&#39;conds = "&#39;virtual" 

 

(Missing operator before virtual?)[/b] 

--- Quote End ---  

 

Now apart from the fact that the error messages are even less readable than the PTF format itself, I have no idea what&#39;s wrong, even after looking at the few Nios PTF&#39;s for old boards that contain MODELSIM sections. 

Before anyone suggests this, getting rid of the {n NAME} bits from the virtual type command and having a pure {NAME NAME NAME} command doesn&#39;t make any significant difference, and anyway I suspect it is not the command itself that is getting complained at. 

Many thanks for anyone who can help.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor I
52 Views

Never mind, this seems to have fixed itself now.

Reply