Hello Matteo,
I don't know if there any tutorials provided from Altera. Maybe you can also find something in the documentation of your simulation tool. You can also try to check out a project from (opencores (
http://www.opencores.org) to see how to simulate designs. Often there are also included some testbenches.
Now I will explain in a short form how to simulate a design with an embedded IP-core (such as the nios II)
first you need your own testbench where the signals are driven.
In this the top-level entity (your complete FPGA-Design) is instantiated.
Inside of your top level entity there can be on or more instances of several units. (maybe also the nios-processor)
I try to illustrate this in a tree view:
tb_top (your testbench)
- additional generators (you need to generate a clock and reset signal. Maybe you also want to simulate external units.)
- top (your fpga design)
+ unit 1 (a user defined unit)
+ unit x (there can be more user defined units)
+ nios_cpu (the nios II cpu)
for simulating you must add all files to the project (upside down, nios and units before your top, top before your tb).
The files which you need for the nios_cpu can be found in the setup_sim.do file.
MfG
Chris