Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.57 KB

info.md

File metadata and controls

34 lines (23 loc) · 1.57 KB

How it works

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:

  1. Mirroring the input pins to the output pins (when rst_n is low).
  2. Mirroring the bidirectional pins to the output pins (when rst_n is high sel is low).
  3. Outputing a counter on the output pins and the bidirectional pins (when rst_n is high and sel 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.

How to test

  1. Set rst_n low and observe that the input pins (ui_in) are output on the output pins (uo_out).
  2. Set rst_n high and sel low and observe that the bidirectional pins (uio_in) are output on the output pins (uo_out).
  3. Set sel high and observe that the counter is output on both the output pins (uo_out) and the bidirectional pins (uio).