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

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