jtag_tap_spartan6.v

changeset 17
50bf3061dbff
parent 16
5fb37de64edc
     1.1 --- a/jtag_tap_spartan6.v	Sun Mar 06 19:48:34 2011 +0000
     1.2 +++ b/jtag_tap_spartan6.v	Sun Mar 06 19:49:17 2011 +0000
     1.3 @@ -1,6 +1,5 @@
     1.4  
     1.5  module jtag_tap(
     1.6 -	output sel,
     1.7  	output tck,
     1.8  	output tdi,
     1.9  	input tdo,
    1.10 @@ -9,6 +8,12 @@
    1.11  	output reset
    1.12  );
    1.13  
    1.14 +wire g_shift;
    1.15 +wire g_update;
    1.16 +
    1.17 +assign shift = g_shift & sel;
    1.18 +assign update = g_update & sel;
    1.19 +
    1.20  BSCAN_SPARTAN6 #(
    1.21  	.JTAG_CHAIN(1)
    1.22  ) bscan (
    1.23 @@ -17,11 +22,11 @@
    1.24  	.RESET(reset),
    1.25  	.RUNTEST(),
    1.26  	.SEL(sel),
    1.27 -	.SHIFT(shift),
    1.28 +	.SHIFT(g_shift),
    1.29  	.TCK(),
    1.30  	.TDI(tdi),
    1.31  	.TMS(),
    1.32 -	.UPDATE(update),
    1.33 +	.UPDATE(g_update),
    1.34  	.TDO(tdo)
    1.35  );
    1.36