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++
12747 Discussions

TCL Script File for Stratix II Board

Altera_Forum
Honored Contributor II
1,530 Views

Hi there, 

 

I'd received the new STRATIX II board with EP2S60F672C5ES device. To start my new Nios application I would like to use a TCL Script to auto assign the IO Pins. (like existing TCL Files for Cyclone board). 

 

May be someone could help ? 

 

Thanks , 

Holger
0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
716 Views

Hi, 

 

Is it the basics you need or do you have a specific problem? 

 

Anyway some basics : 

 

Rather simple. Make your new tcl file (cut and past the standard things like RAM, ... connections) and add your own. 

 

Open the TCL console in the Quartus software and do "source xxx.tcl" xxx = file name. TO look if you are in the correct directory, use "pwd" and eventually cd to an other one. 

 

Stefaan
0 Kudos
Altera_Forum
Honored Contributor II
716 Views

each example design in Nios II has the complete board pinout in the qsf file. does that help you?

0 Kudos
Altera_Forum
Honored Contributor II
716 Views

...Also in the Quartus II 4.2 shipment I noticed a handy book on Quartus command scripting. I'm not sure how much detail it goes into as far as TCL is concerned but it certainly looks cool!

0 Kudos
Altera_Forum
Honored Contributor II
716 Views

OK thanks, 

 

I think thes informaton would help me. 

 

Holger
0 Kudos
Altera_Forum
Honored Contributor II
716 Views

in quartus->project there is a menu item: "generate tcl file for current project". 

 

This I find useful because it generates a Tcl file which you can build on for adding pins, i.e. use as a template. In this way you dont have to fight too much with syntax issues in for instance namings of bus ports.  

In addition it will give a dump of all your current systems settings. Well is it realy all? I guess so at least. Sometimes you may find unexpected options (and incomprehensible ones too) listed there, which you didnt realize were set.
0 Kudos
Altera_Forum
Honored Contributor II
716 Views

If you don't plan on creating many different designs (i.e. not running the script often) you can also try one of the nios reference designs. It may have components that you do not require so you can just remove those. At least with this route you know your I/O have already been assigned for you, and you already have a system ready to program.

0 Kudos
Reply