Altera_Forum
Honored Contributor
15 years agoAccessing JTAG pins using Virtual JTAG Megafunction
I've written code that will enable me to program an EPCS** device attached to a FPGA.
I'm using the ALTASMI_PARALLEL megafunction to access and program an EPCS16. The code works fine but rather than use IO pins I'd like to be able to use the JTAG pins to do this. In effect I want to write my own version of the Altera Serial Flash Loader since the protocol (over USB ) for using this is not published. Using the Virtual JTAG Megafunction I can expose the JTAG pins as follows: wire TDO, TDI, TMS, TCK; VJTAG VJTAG_inst (.tdo(TDO), .tdi(TDI), .tms(TMS), .tck(TCK)); I can then access and use TDI, TMS and TCK as inputs which work just fine in my application. However, I can't get TDO to work as an output. Can someone please explain how this is done. Thanks