Forum Discussion
Altera_Forum
Honored Contributor
13 years agoHi Dave,
I have a question; Say I take your example design with the ram, leds and buttons, and instead of buttons I use switches. I run this design on two boards. On one board I put the switch to high / one, meaning Master. On the other board I put the switch to low/zero, meaning Slave. I connect two usb-byteblaster to my pc and start System Console Situation 1: How do I: - Scan for all available jtag2avalon master? - How do I assign a tcl variable MASTER, to the board that has the switch to one? So that I can use that MASTER in my other procedures for doing master_functions. For example "lit led 0 if you are a master board" - And the same question for the slave. Situation 2: This should be dynamic. When I have this running, I want to be able to switch both boards in the other mode. Meaning, the master becomes slave, and the slave becomes master. I would like to run the same script without modifying it, and detect the new master and new slave board. Is that possible? Situation 3: Now I start debugging, and add sometimes a NIOS with a jtag_uart, sometimes signaltap, sometimes both and sometimes none. Can this script then still identify the jtag2avalon master and detect the master board and the slave board? I assume that the nios has certain "jtag_identifier_code", and the signaltap as well. Rgds, Kimberley