Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)

System console TCL API

Altera_Forum
Honored Contributor II
2,339 Views

Is it possible to interface to system console via TCL API from external apps (e.g. GUI based C++ app)? Are their any tutorials?

0 Kudos
8 Replies
Altera_Forum
Honored Contributor II
1,000 Views

The easiest way to integrate with SystemConsole is to use Tcl's TCP/IP interface, eg., see the code with this tutorial 

 

http://www.alterawiki.com/wiki/using_the_usb-blaster_as_an_sopc/qsys_avalon-mm_master_tutorial 

 

There are both Tcl and C client application examples. 

 

Cheers, 

Dave
0 Kudos
Altera_Forum
Honored Contributor II
1,000 Views

 

--- Quote Start ---  

Is it possible to interface to system console via TCL API from external apps (e.g. GUI based C++ app)? Are their any tutorials? 

--- Quote End ---  

 

 

No, it is not possible to use Tcl API to create your own applications. If I understand it's structure correctly, System Console is actually a Java application with embedded Tcl interpreter. 

 

If you wish to use functionality that System Console provides, you are basically stuck using traditional IPC methods between your System Console TCL script and your external application, like the TCP/IP method Dave mentioned. 

 

Depending on your GUI application requirements (maybe you are starting from scratch and don't have to do that much), you can use the dashboard API's. I have used it to produce diagnostic interfaces for lab technicians to use, for example. 

http://www.altera.com/education/demonstrations/qsys/system-console/system-console-demo.html
0 Kudos
Altera_Forum
Honored Contributor II
1,000 Views

What's the difference between system console and virtual JTAG? Why not use virtual jtag to debug your design?

0 Kudos
Altera_Forum
Honored Contributor II
1,000 Views

Virtual JTAG is a component 

 

http://www.altera.com/literature/ug/ug_virtualjtag.pdf 

 

System Console is software that allows you to communicate via JTAG, eg., you can use System Console to communicate with SLD JTAG components. 

 

Cheers, 

Dave
0 Kudos
Altera_Forum
Honored Contributor II
1,000 Views

Here is another example of setting up a TCP/IP TCL Server that lets you talk to the Virtual JTAG running in the quartus_stp.exe: 

http://idle-logic.com/2012/04/15/talking-to-the-de0-nano-using-the-virtual-jtag-interface/
0 Kudos
Altera_Forum
Honored Contributor II
1,000 Views

 

--- Quote Start ---  

Virtual JTAG is a component 

 

http://www.altera.com/literature/ug/ug_virtualjtag.pdf 

 

System Console is software that allows you to communicate via JTAG, eg., you can use System Console to communicate with SLD JTAG components. 

 

Cheers, 

Dave 

--- Quote End ---  

 

 

As czeh's post, i can use tcl-tk communicate with virtual jtag and use it to debug my fpga design. Also i can use VJ to test my fpga design,eg.. i can send data to fpga, and can read data from fpga for offline analyzing. As attahced shows, i have designed one debug station used for my current designs debugging and testing.
0 Kudos
Altera_Forum
Honored Contributor II
1,000 Views

I'm not 100% sure, but I don't think tcl-tk is available for the Web edition of Quartus... I could be mistaken. (TCL yes, but not tk last time I checked). 

 

Anyhow, I personally prefer to use something like VB or Python (w/ wxWidgets) for a little more modern looking UI and a more robust/powerful IDE.
0 Kudos
Altera_Forum
Honored Contributor II
1,000 Views

Following up: I just tried using TCL/TK in Quartus Web edition and it seems to work fine. I just used the sample code found if you run this command in the TCL Console: 

init_tk -long_help
0 Kudos
Reply