Pad Frame Test Logics: Difference between revisions

From LibreSilicon
Jump to navigation Jump to search
Line 6: Line 6:


== 8 bit ring counter ==
== 8 bit ring counter ==
The idea behind this simple 8 bit counter is manifold<syntaxhighlight lang="verilog">
module ring8(
    input  wire clk,
    input  wire rst_n,
    output wire [7:0] q
);
    reg [7:0] q_r;
    always @(posedge clk) begin
        if (!rst_n) q_r <= 8'b00000001;
        else        q_r <= {q_r[6:0], q_r[7]};
    end
    assign q = q_r;
endmodule
</syntaxhighlight>First we test whether the library generated for a node generated by [[LibreStandardCell]] actually can be turned into a spice model, using Magic's spice extraction, which can be due to still being simple enough, simulated using ngspice and verified that it actually walks.
Additionally, we can determine the maximum clock frequency with which we can clock the ring counter before it stops working while we have it hooked up to an oscilloscope, which allows us to compare the measurements to our ngspice predictions of the circuit and the overall padframe integration.


== A switched state test ==
== A switched state test ==

Revision as of 18:45, 10 November 2026

A collection of simple functionality tests for verifying the proper behavior of a pad frame when porting LibrePDK to a new technology node.

The base repository with branches for individual generated layouts for test tapeouts, with their GDS files in GIT LFS, can be found here https://gitlab.libresilicon.com/designs/highwaytestchip/-/tree/master?ref_type=heads

Below the functions are being documented.

8 bit ring counter

The idea behind this simple 8 bit counter is manifold

module ring8(
    input  wire clk,
    input  wire rst_n,
    output wire [7:0] q
);
    reg [7:0] q_r;
    always @(posedge clk) begin
        if (!rst_n) q_r <= 8'b00000001;
        else        q_r <= {q_r[6:0], q_r[7]};
    end
    assign q = q_r;
endmodule

First we test whether the library generated for a node generated by LibreStandardCell actually can be turned into a spice model, using Magic's spice extraction, which can be due to still being simple enough, simulated using ngspice and verified that it actually walks.

Additionally, we can determine the maximum clock frequency with which we can clock the ring counter before it stops working while we have it hooked up to an oscilloscope, which allows us to compare the measurements to our ngspice predictions of the circuit and the overall padframe integration.

A switched state test

clock net loop back

The clock net loop-back is simply one of the pads, being permanently configured as an input, passing on the clock signal to all the other test circuits on the die, as well as directly passing it to a pad directly configured as output with active driver.

This test configuration allows us to measure clock skew and maximum clock propagation between input and output pads cells.