16.3.2 hm4

16.3.2.1 INV

Inverter.
Figure 16-200. INV
Table 16-414. INV I/O
InputOutput
AY
Table 16-415. INV Truth Table
AY
01
10

16.3.2.2 INVD

Inverter.
Note: Compile optimization does not remove this macro.
Figure 16-201. INVD
Table 16-416. INVD I/O
InputOutput
AY
Table 16-417. INVD Truth Table
AY
01
10

16.3.2.3 MX2

2 to 1 Multiplexer.
Figure 16-202. MX2
Table 16-418. MX2 I/O
InputOutput
A, B, SY
Table 16-419. MX2 Truth Table
ABSY
AX0A
XB1B

16.3.2.4 MX4

4 to 1 Multiplexer.

This macro uses two logic modules.
Figure 16-203. MX4
Table 16-420. MX4 I/O
InputOutput
D0, D1, D2, D3, S0, S1Y
Table 16-421. MX4 Truth Table
D3D2D1D0S1S0Y
XXXD000D0
XXD1X01D1
XD2XX10D2
D3XXX11D3

16.3.2.5 NAND2

2-Input NAND.
Figure 16-204. NAND2
Table 16-422. NAND2 I/O
InputOutput
A, BY
Table 16-423. NAND2 Truth Table
ABY
X01
0X1
110

16.3.2.6 NAND3

3-Input NAND.
Figure 16-205. NAND3
Table 16-424. NAND3 I/O
InputOutput
A, B, CY
Table 16-425. NAND3 Truth Table
ABCY
XX01
X0X1
0XX1
1110

16.3.2.7 NAND4

4-input NAND.
Figure 16-206. NAND4
Table 16-426. NAND4 I/O
InputOutput
A, B, C, DY
Table 16-427. NAND4 Truth Table
ABCDY
XXX01
XX0X1
X0XX1
0XXX1
11110

16.3.2.8 NOR2

2-input NOR.
Figure 16-207. NOR2
Table 16-428. NOR2 I/O
InputOutput
A, BY
Table 16-429. NOR2 Truth Table
ABY
001
X10
1X0

16.3.2.9 NOR3

3-input NOR.
Figure 16-208. NOR3
Table 16-430. NOR3 I/O
InputOutput
A, B, CY
Table 16-431. NOR3 Truth Table
ABCY
0001
XX10
X1X0
1XX0

16.3.2.10 NOR4

4-input NOR.
Figure 16-209. NOR3
Table 16-432. NOR4 I/O
InputOutput
A, B, C, DY
Table 16-433. NOR4 Truth Table
ABCDY
00001
1XXX0
X1XX0
XX1X0
XXX10

16.3.2.11 OR2

2-input OR.
Figure 16-210. OR2
Table 16-434. OR2 I/O
InputOutput
A, BY
Table 16-435. OR2 Truth Table
ABY
000
X11
1X1

16.3.2.12 OR3

3-input OR.
Figure 16-211. OR3
Table 16-436. OR3 I/O
InputOutput
A, B, CY
Table 16-437. OR3 Truth Table
ABCY
0000
XX11
X1X1
1XX1

16.3.2.13 OR4

4-input OR.
Figure 16-212. OR4
Table 16-438. OR4 I/O
InputOutput
A, B, C, DY
Table 16-439. OR4 Truth Table
ABCDY
00000
1XXX1
X1XX1
XX1X1
XXX11

16.3.2.14 XOR2

2-input XOR.
Figure 16-213. XOR2
Table 16-440. XOR2 I/O
InputOutput
A, BY
Table 16-441. XOR2 Truth Table
ABY
000
011
101
110

16.3.2.15 XOR3

3-input XOR.
Figure 16-214. XOR3
Table 16-442. XOR3 I/O
InputOutput
A, B, CY
Table 16-443. XOR3 Truth Table
ABCY
0000
1001
0101
1100
0011
1010
0110
1111

16.3.2.16 XOR4

4-input XOR.
Figure 16-215. XOR4
Table 16-444. XOR4 I/O
InputOutput
A, B, C, DY
Table 16-445. XOR4 Truth Table
ABCDY
00000
00011
00101
00110
01001
01010
01100
01111
10001
10010
10100
10111
11000
11011
11101
11110

16.3.2.17 XOR8

8-input XOR.

This macro uses two logic modules.
Figure 16-216. XOR8
Table 16-446. XOR8 I/O
InputOutput
A, B, C, D, E, F, G, HY

If you have an odd number of inputs that are High, the output is High (1).

If you have an even number of inputs that are High, the output is Low (0).

For example:

Table 16-447. XOR8 Truth Table
ABCDEFGHY
000000000
000000011
000000110

16.3.2.18 UJTAG

The UJTAG macro is a special purpose macro. It allows access to the user JTAG circuitry on board the chip. You must instantiate a UJTAG macro in your design if you plan to make use of the user JTAG feature. The TMS, TDI, TCK, TRSTB, and TDO pins of the macro must be connected to top level ports of the design.

Figure 16-217. UJTAG
Table 16-448. Ports and Descriptions
PortDirectionPolarityDescription
UIREG[7:0]OutputThis 8-bit bus carries the contents of the JTAG instruction register of each device. Instruction values 16 to 127 are not reserved and can be employed as user-defined instructions.
URSTBOutputLowURSTB is an Active-Low signal and is asserted when the TAP controller is in Test-Logic-Reset mode. URSTB is asserted at power-up, and a Power-on Reset signal resets the TAP controller state.
UTDIOutputThis port is directly connected to the TAP's TDI signal.
UTDOInputThis port is the user TDO output. Inputs to the UTDO port are sent to the TAP TDO output MUX when the IR addess is in user range.
UDRSHOutputHighActive-High signal enabled in the Shift_DR TAP state.
UDRCAPOutputHighActive-High signal enabled in the Capture_DR_TAP state.
UDRCKOutputThis port is directly connected to the TAP's TCK signal.
UDRUPDOutputHighActive-High signal enabled in the Update_DR_TAP state.
TCKInputTest Clock

Serial input for JTAG boundary scan, ISP, and UJTAG. The TCK pin does not have an internal pull-up/pull-down resistor. Connect TCK to GND or 3.3V through a resistor (500–1 KΩ) placed closed to the FPGA pin to prevent totem-pole current on the input buffer and TMS from entering into an undesired state.

If JTAG is not used, connect it to GND.

TDIInputTest Data in. Serial input for JTAG boundary scan. There is an internal weak pull-up resistor on the TDI pin.
TDOOutputTest Data Out. Serial output for JTAG boundary scan. The TDO pin does not have an internal pull-up/pull-down resistor.
TMSInputTest mode select. The TMS pin controls the use of the IEEE® 1532 boundary scan pins (TCK, TDI, TDO, and TRST). There is an internal weak pull-up resistor on the TMS pin.
TRSTBInputLowTest reset. The TRSTB pin is an active-low input. It synchronously initializes (or resets) the boundary scan circuitry. There is an internal weak pull-up resistor on the TRSTB pin.

To hold the JTAG in reset mode and prevent it from entering into undesired states in critical applications, connect TRSTB to GND through a 1 KΩ resistor (placed close to the FPGA pin).