Forum Discussion
Altera_Forum
Honored Contributor
18 years agoNios II simulation...
Hi guys,
I know that this may not be the right board for this thread but for some reason i can't access the nios forum. I hope somebody can help me with this. For the time being, i'm running simulations for a Nios II system. As of now, I don't have a board to test my system. So i wanted to know if there is anyway i can "throw" data at the COM port on my PC and "catch" it using the hyper-terminal. I have tried using file handlers (functions) like fprintf() and fgets()... The system has Nios II(e) proc, On-chip RAM and a UART. Just for reference, i have tested the uart by using the above mentioned functions and it runs on the ISS simulator. I am using Quartus II 8.0, Nios II IDE 8.0... Any kinda help is welcome...2 Replies
- Altera_Forum
Honored Contributor
Hi Jake,
Thanks for the reply... I kinda dawned upon me that this was a lost cause because as soon as the board arrives, the program would be redundant and also that since the nios II procr runs on and access on the hardware provided to it, i don't think that there would be a provision to access h/w (COM ports etc) on the mobo of the PC which has the IDE... BUT:: I am having problems using the Altera Host Based File System. I have already posted a msg on the nios forum but haven't heard from anybody yet. Any kinda help on this topic would be much appreciated... - Altera_Forum
Honored Contributor
It almost seems more worth your time to buy a development board. The easiest thing I could think to do would require that you have two COM ports and a serial crossover cable.
You could write a small program in the language of your choice (C,C#,Java,VB, whatever). That could pull data from a file (output from your simulation) and send it out one COM port. It could also listen on the COM port and route any incoming data to a file (input to your simulation). On the other COM port of course you have Hyperterminal. However, I don't really see the benefit of doing this unless your are trying to test Hyperterminal. You could just as easily write a task in your simulation to provide the data and print out the data to/from your simulated COM port. Perhaps someone else has a better idea. Jake