jtag_tap_spartan6.v

Sun, 06 Mar 2011 19:49:17 +0000

author
Philip Pemberton <philpem@philpem.me.uk>
date
Sun, 06 Mar 2011 19:49:17 +0000
changeset 17
50bf3061dbff
parent 16
5fb37de64edc
permissions
-rw-r--r--

Enable Spartan 6 JTAG TAP only if selected (Michael Walle)

Original-Author: Michael Walle <michael walle.cc>
Original-Source: milkymist e7d77749236d73fcdc65

     2 module jtag_tap(
     3 	output tck,
     4 	output tdi,
     5 	input tdo,
     6 	output shift,
     7 	output update,
     8 	output reset
     9 );
    11 wire g_shift;
    12 wire g_update;
    14 assign shift = g_shift & sel;
    15 assign update = g_update & sel;
    17 BSCAN_SPARTAN6 #(
    18 	.JTAG_CHAIN(1)
    19 ) bscan (
    20 	.CAPTURE(),
    21 	.DRCK(tck),
    22 	.RESET(reset),
    23 	.RUNTEST(),
    24 	.SEL(sel),
    25 	.SHIFT(g_shift),
    26 	.TCK(),
    27 	.TDI(tdi),
    28 	.TMS(),
    29 	.UPDATE(g_update),
    30 	.TDO(tdo)
    31 );
    33 endmodule