The factory test module is a simple module that can be used to test all the I/O pins of the ASIC.
It has three modes of operation:
- Mirroring the input pins to the output pins (when
rst_n
is low). - Mirroring the bidirectional pins to the output pins (when
rst_n
is highsel
is low). - Outputing a counter on the output pins and the bidirectional pins (when
rst_n
is high andsel
is high).
The following table summarizes the modes:
rst_n |
sel |
Mode | uo_out value | uio pins |
---|---|---|---|---|
0 | X | Input mirror | ui_in | High-Z |
1 | 0 | Bidirectional mirror | uio_in | High-Z |
1 | 1 | Counter | counter | counter |
The counter is an 8-bit counter that increments on every clock cycle, and resets when rst_n
is low.
- Set
rst_n
low and observe that the input pins (ui_in
) are output on the output pins (uo_out
). - Set
rst_n
high andsel
low and observe that the bidirectional pins (uio_in
) are output on the output pins (uo_out
). - Set
sel
high and observe that the counter is output on both the output pins (uo_out
) and the bidirectional pins (uio
).