- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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'b10100 ST} {5'b11000 BR} BSR RET {5'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 "'ops = "'virtual" (Missing operator before virtual?) Bareword found where operator expected at (eval 2) line 236, near "' ,[OR AND XOR NOT MOV ADD SUB CMP LSLI LSRI ASRI ROTI MOVI ADDI SUBI 'CMPI" (Missing operator before CMPI?) Bareword found where operator expected at (eval 2) line 236, near "' ,[5'b10100" (Missing operator before b10100?) String found where operator expected at (eval 2) line 236, near "5'b11000 BR], '" (Missing operator before 'b11000 BR], '?) Bareword found where operator expected at (eval 2) line 236, near "'b11000 BR], 'BSR" (Missing operator before BSR?) Bareword found where operator expected at (eval 2) line 237, near "'conds = "'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's wrong, even after looking at the few Nios PTF'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'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.Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Never mind, this seems to have fixed itself now.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page