Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12748 Discussions

Simulating NIOS II with ModelSim

Altera_Forum
Honored Contributor II
1,978 Views

When compiling NIOS II with ModelSim, I got the following errors: 

( I used the "full featured version" provided with V7 distribution).# -- Compiling entity cpu# -- Compiling architecture rtl of cpu# ** Error: C:/altera/70/nios2eds/examples/vhdl/niosII_stratixII_2s60_ES/full_featured/cpu.vho(13879): (vcom-1136) Unknown identifier "clock_enable_core_a".# ** Error: C:/altera/70/nios2eds/examples/vhdl/niosII_stratixII_2s60_ES/full_featured/cpu.vho(13880): (vcom-1136) Unknown identifier "clock_enable_core_b".# ** Error: C:/altera/70/nios2eds/examples/vhdl/niosII_stratixII_2s60_ES/full_featured/cpu.vho(13885): (vcom-1136) Unknown identifier "enable_ecc".# ** Error: C:/altera/70/nios2eds/examples/vhdl/niosII_stratixII_2s60_ES/full_featured/cpu.vho(13903): (vcom-1136) Unknown identifier "read_during_write_mode_port_a".# ** Error: C:/altera/70/nios2eds/examples/vhdl/niosII_stratixII_2s60_ES/full_featured/cpu.vho(13904): (vcom-1136) Unknown identifier "read_during_write_mode_port_b". 

 

etc... 

# ** Error: C:/altera/70/nios2eds/examples/vhdl/niosII_stratixII_2s60_ES/full_featured/cpu.vho(34208): VHDL Compiler exiting# c:/modeltech_ae/win32aloem/vcom failed. 

 

Did anybody get these errors? Any idea to fix the errors? 

Thanks 

de
0 Kudos
8 Replies
Altera_Forum
Honored Contributor II
632 Views

Hi, 

 

Not as familar with the VHDL flow of Modelsim/Nios. 

 

Looks like your VCOM error does not see a node or something. 

 

Just a guess, maybe a -novopt command may help. 

 

-Baycool
0 Kudos
Altera_Forum
Honored Contributor II
632 Views

Do you have any warning or errors during synthesis with quartus? 

 

Most of the time quartus detects all the mistakes in your vhdl/verilog....
0 Kudos
Altera_Forum
Honored Contributor II
632 Views

 

--- Quote Start ---  

originally posted by romain53@Mar 27 2007, 09:48 AM 

do you have any warning or errors during synthesis with quartus? 

 

most of the time quartus detects all the mistakes in your vhdl/verilog.... 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=22536) 

--- quote end ---  

 

--- Quote End ---  

 

 

 

As shown in the path, the compilation errors occur when ModelSim compiles the VHDL version of the CPU provided by Altera. I didn&#39;t write any VHDL code. 

There is neither errors nor warning when compiling the system with Quartus. 

I was wondering if the errors come from the system (generated by SoC builder) or from the VHDL version of the CPU that is OK for Quartus, but actually not for ModelSim. 

 

de
0 Kudos
Altera_Forum
Honored Contributor II
632 Views

Are you using the supplied tcl script?

0 Kudos
Altera_Forum
Honored Contributor II
632 Views

 

--- Quote Start ---  

originally posted by tembridis@Mar 27 2007, 11:10 AM 

are you using the supplied tcl script? 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=22543) 

--- quote end ---  

 

--- Quote End ---  

 

 

I am following the procedure of application note 351: simulating Nios II embedded processor designs.  

ModelSim is launched from NIOSII IDE. Then I use the "s" command. 

 

de
0 Kudos
Altera_Forum
Honored Contributor II
632 Views

Hi de, 

 

As a sanity check compile a trival design( A Nios , JTAG UART and Memory with a simple Hello World) and see what you get. If you are following the flow in AN351 you should have no problems. 

 

-Baycool
0 Kudos
Altera_Forum
Honored Contributor II
632 Views

 

--- Quote Start ---  

originally posted by baycool@Mar 27 2007, 07:07 PM 

hi de, 

 

as a sanity check compile a trival design( a nios , jtag uart and memory with a simple hello world) and see what you get. if you are following the flow in an351 you should have no problems. 

 

-baycool 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=22556) 

--- quote end ---  

 

--- Quote End ---  

 

 

This is exactly what I have done and I have got... the compiler errors. 

 

de
0 Kudos
Altera_Forum
Honored Contributor II
632 Views

Problem is solved.  

With Quartus II version 7.0, the latest version of ModelSIM (6.1.g) is needed. 

 

de
0 Kudos
Reply