SoC Verification: The Key Areas, and How to Check the Glue Between IPs
In short: SoC verification is mostly about integration. The IP blocks arrive already verified, so at chip level you check what the SoC team adds: address decode, pin muxing, interrupt wiring and polarity, reset and boot, register access, the paths between blocks, low power, analog and the real use cases. I built a mini SoC with three IP blocks and a UVM bench whose scoreboard models the register map, the pin mux and the interrupt pin, and checks them on every cycle. I planted four integration bugs. On VCS, the smoke test caught only the interrupt-pin polarity bug; the pin-mux bug, the swapped interrupts and the address alias each needed the phase written for that kind of glue.
What makes SoC verification different from IP verification?
Every SoC is built from IP blocks: some bought, some made in-house. Each one has already passed its own IP-level test suite. The SoC team’s job is not to test those blocks again. It is to check what happens when they are put together: the addresses they sit at, the pins they share, the interrupts they raise, the order they come out of reset, and the traffic between them.
That changes the questions. An IP team asks “does the UART send the right bits?” An SoC team asks “when the pin mux is in mode 2, does the UART’s output actually reach pad 1?” and “when the TIMER raises an interrupt, does bit 2 of the status register go high, and does the chip’s interrupt pin go low?” Those bugs are not inside any block. They live in the glue between blocks, which is often written last and tested least.
The cost is high. A wrong pin mux leg or an inverted interrupt can make a working IP look dead on silicon, and a respin is the most expensive bug a chip company can have.
The picture: wiring a house full of tested appliances
You are building a house. The fridge, the oven and the boiler were all tested at the factory. Nobody re-tests the fridge’s compressor on site.
What you do test is the wiring. Does the switch by the door turn on the hall light, or the kitchen light? Does the doorbell ring inside, or does it trip the breaker? When you flip the main breaker off and on, does everything come back the way it was?
SoC verification is that wiring check for a chip. The appliances are trusted. The joins between them are where you look hardest, and you have to flip every switch, because the one you skip is the one that is wired wrong.
What will you learn?
By the end of this post you will be able to:
- Explain what an SoC team verifies that the IP teams do not.
- Walk through the key areas of SoC verification and say why each one matters.
- Build a register-map model that predicts every read, every pad and the interrupt pin.
- Check a pin mux in every mode and in both directions, not just in the default mode.
- Catch address aliases with a write-all-then-read-all test, and say why write-then-read-back misses them.
- Check interrupt wiring and polarity, and know which check finds which mistake.
- Decide when SoC verification is done, using coverage goals per area.
What are the key areas to check during SoC verification?
Each IP block supports many features, but only some of them matter at chip level. An IP might have eight interrupt outputs; if the SoC only wires three, those three are what the SoC team checks. Here are the areas most SoC teams work through, and why each one matters.
| Area | What to check | Why it matters |
|---|---|---|
| Pin muxing | every function reaches its pad in every mux mode, in both directions | pins cost money, so they are shared; a wrong leg makes the chip talk to the wrong thing |
| Address decode | every register sits at its address and nowhere else | an alias lets one block’s write change another block silently |
| Interrupt wiring and polarity | each source reaches the right status bit, and the chip pin has the right polarity | one swapped or inverted line makes a working block look dead |
| Register access | reset values, read-write and read-only behaviour | almost every feature is turned on through a register |
| Reset and boot | reset values, reset sequence, each boot source | a chip that will not boot is dead on arrival |
| Protocol checks | checkers on every block boundary | most integration bugs show up where two blocks talk |
| Control and data paths | external interfaces, DMA and processor traffic in parallel | contention and priority bugs hide here |
| Low power | entry and exit of each mode, isolation and level shifters from the UPF or CPF intent | a bad wake sequence can hang the chip |
| Analog integration | behavioural models (Verilog-AMS) in full-chip runs | digital simulation alone cannot model analog behaviour |
| Gate-level and SPICE | timing, glitches, reset-path logic; analog in mixed runs | RTL hides real timing and real analog behaviour |
| System use cases | several applications running at once | this is what the customer runs; it shows latency and priority problems |
The first four rows are checked by the bench in this post. Reset is partly covered: the bench checks every reset value, but not a boot sequence. The rest need tools or models this demo does not have, so I explain them later, labelled as not run here.
On a bigger SoC every IP gets its own agent, and something has to decide which one talks when: boot over APB first, then traffic on several ports at once. That job belongs to a virtual sequence. My UVM virtual sequence guide builds one on a three-agent bench.
What does the demo SoC and its testbench look like?
The design is tav_mini_soc. It has three IP blocks, UART, SPI and TIMER, built from the same small tav_ip module: a CTRL register whose bit 0 drives the block’s output pin and bit 1 raises its interrupt, a STATUS register that shows the block’s input pin and interrupt, and a read-only ID. Treat them as the trusted, already-verified IPs.
Around them is the glue an SoC team writes: an address decode that gives each block 64 bytes, a two-pad pin mux with four modes, and an interrupt controller with a status register, a mask register and an active-low chip pin, irq_n.

The bench, in tav_soc_integration_uvm.sv:

- Five phases, one sequence each. 1, smoke: the kind of “it boots” test written first, UART only in the default mux mode. 2, registers: read every reset value, then write and read back each RW register on its own. 3, alias: write a different value to every RW register, then read them all back. 4, pin mux: in every mode, toggle each block’s output pin and drive every pad input pattern. 5, interrupts: raise and clear each source, with the mask open and then closed.
- Driver (
tav_soc_driver): one bus operation or pad change per clock, on the falling edge. - Monitor (
tav_soc_monitor): samples the bus, both pads andirq_non every cycle, whether or not the bus is busy. - Scoreboard (
tav_soc_scoreboard): keeps a mirror of every RW register and a table of the mux modes, both written from the register map. On every cycle it predicts both pads andirq_n; on every read it predicts the data, including STATUS bits that depend on the pads. It counts mismatches per phase and per kind: REG, PIN and IRQ.
The planted bugs, one per run, all in the glue:
| Option | Bug |
|---|---|
| (none) | the clean SoC |
+BUG=1 | pin mux mode 2 routes SPI to pad 1 instead of UART |
+BUG=2 | the SPI and TIMER interrupt lines are swapped going into IRQ_STATUS |
+BUG=3 | the chip interrupt pin is active high instead of active low |
+BUG=4 | a write to TIMER also writes SPI: address bit 7 is left out of the SPI decode |
How do you check SoC integration in UVM?
Here is the whole bench. To run it on EDA Playground, pick Synopsys VCS and UVM 1.2, paste the file into testbench.sv, leave design.sv empty, and set the top module to tav_top. Add +BUG=1 to +BUG=4 in the run options to plant a bug. The same file is in the tav-verification-basics repo on GitHub.
Three parts carry the lesson. The scoreboard’s route table is the pin mux written straight from the spec, and exp_read() uses it to predict STATUS reads in both directions. write() checks the pads and irq_n on every cycle, before it applies that cycle’s write, so a wrong pin is caught the moment it appears. And the five sequences decide what each phase can reach.
This scoreboard keeps its register map by hand, which is fine for a small demo. On a chip with hundreds of registers that job goes to a UVM register model. My UVM RAL guide builds one on an APB block and shows what it checks and which register bugs it misses.
// tav_soc_integration_uvm.sv : checking how blocks are wired together in a tiny SoC (UVM 1.2)
// Run on Synopsys VCS X-2025.06-SP1 with UVM 1.2 (EDA Playground), 25 Nov 2026.
// The Art of Verification | theartofverification.com
//
// EDA Playground: Synopsys VCS, UVM 1.2, top module "tav_top".
// Paste this whole file into testbench.sv and leave design.sv empty.
//
// The SoC has three small IP blocks (UART, SPI, TIMER) that are already verified on their
// own. This bench checks only what the SoC team adds: address decode, the pin mux, the
// interrupt wiring and the chip interrupt pin. A spec model in the scoreboard predicts every
// register read, both pads and the interrupt pin on every cycle.
//
// Register map (32-bit bus, byte addresses):
// 0x00 UART, 0x40 SPI, 0x80 TIMER. Each block has:
// +0x0 CTRL RW, bits [7:0]. bit 0 drives the block's output pin, bit 1 raises its
// interrupt. Reset value: UART 0x10, SPI 0x20, TIMER 0x30.
// +0x4 STATUS RO. bit 0 = the block's input pin, bit 1 = its interrupt.
// +0x8 ID RO. UART 0x5541, SPI 0x5350, TIMER 0x544D.
// 0xC0 PINMUX RW, bits [1:0], reset 0.
// 0xC4 IRQ_STATUS RO, bits [2:0] = UART, SPI, TIMER interrupts.
// 0xC8 IRQ_MASK RW, bits [2:0], reset 0.
// Any other address reads 0 and ignores writes.
// Pin mux (pad 0 / pad 1):
// mode 0: UART / SPI mode 1: SPI / TIMER mode 2: TIMER / UART mode 3: both pads 0
// A block's input pin is the pad it is routed to, or 0 if it is not routed.
// Chip interrupt pin irq_n is active low: irq_n = 0 when any (IRQ_STATUS & IRQ_MASK) bit is 1.
//
// The test runs five phases: a smoke test, a register test, an alias test, a pin-mux test
// and an interrupt test. The scoreboard counts mismatches per phase and per kind.
//
// Run options (one per run):
// (none) the clean SoC
// +BUG=1 pin mux mode 2 routes SPI to pad 1 instead of UART
// +BUG=2 the SPI and TIMER interrupt lines are swapped going into IRQ_STATUS
// +BUG=3 the chip interrupt pin is active high instead of active low
// +BUG=4 a write to TIMER also writes SPI (address bit 7 left out of the SPI decode)
`timescale 1ns/1ns
`include "uvm_macros.svh"
import uvm_pkg::*;
// ---------------------------------------------------------------------------
// One IP block: CTRL, STATUS, ID. This is the "already verified" part.
// ---------------------------------------------------------------------------
module tav_ip #(parameter logic [7:0] RESET_CTRL = 8'h00, parameter logic [15:0] ID = 16'h0000)
(input logic clk, rst_n, sel, we, input logic [5:0] off, input logic [31:0] wdata,
output logic [31:0] rdata, output logic out_pin, irq, input logic in_pin);
logic [7:0] ctrl;
always_ff @(posedge clk or negedge rst_n)
if (!rst_n) ctrl <= RESET_CTRL;
else if (sel && we && off == 6'h0) ctrl <= wdata[7:0];
assign out_pin = ctrl[0];
assign irq = ctrl[1];
always_comb
case (off)
6'h0: rdata = {24'h0, ctrl};
6'h4: rdata = {30'h0, irq, in_pin};
6'h8: rdata = {16'h0, ID};
default: rdata = 32'h0;
endcase
endmodule
// ---------------------------------------------------------------------------
// The SoC: the glue the SoC team wrote (decode, pin mux, interrupt controller)
// ---------------------------------------------------------------------------
module tav_mini_soc (input logic clk, rst_n,
input logic bus_req, bus_we, input logic [7:0] bus_addr,
input logic [31:0] bus_wdata, output logic [31:0] bus_rdata,
output logic [1:0] pad_out, input logic [1:0] pad_in,
output logic irq_n, input int bug);
logic [2:0] sel, out_pin, irq_ip, in_pin, irq_status;
logic [31:0] rd [3];
logic [1:0] pinmux;
logic [2:0] mask;
logic soc_sel, any;
// address decode: addr[7:6] picks the block
always_comb begin
sel[0] = bus_req && bus_addr[7:6] == 2'd0;
sel[1] = bus_req && bus_addr[7:6] == 2'd1;
sel[2] = bus_req && bus_addr[7:6] == 2'd2;
soc_sel = bus_req && bus_addr[7:6] == 2'd3;
if (bug == 4 && bus_req && bus_we && bus_addr[6:0] == 7'h00 && bus_addr[7])
sel[1] = 1; // BUG=4: SPI decode ignores addr[7]
end
tav_ip #(8'h10, 16'h5541) u_uart (clk, rst_n, sel[0], bus_we, bus_addr[5:0], bus_wdata, rd[0], out_pin[0], irq_ip[0], in_pin[0]);
tav_ip #(8'h20, 16'h5350) u_spi (clk, rst_n, sel[1], bus_we, bus_addr[5:0], bus_wdata, rd[1], out_pin[1], irq_ip[1], in_pin[1]);
tav_ip #(8'h30, 16'h544D) u_timer (clk, rst_n, sel[2], bus_we, bus_addr[5:0], bus_wdata, rd[2], out_pin[2], irq_ip[2], in_pin[2]);
// SoC registers
always_ff @(posedge clk or negedge rst_n)
if (!rst_n) begin pinmux <= 0; mask <= 0; end
else if (soc_sel && bus_we) begin
if (bus_addr[5:0] == 6'h00) pinmux <= bus_wdata[1:0];
if (bus_addr[5:0] == 6'h08) mask <= bus_wdata[2:0];
end
// pin mux: outputs to the pads, pads back to the inputs
always_comb begin
pad_out = 2'b00; in_pin = 3'b000;
case (pinmux)
2'd0: begin pad_out = {out_pin[1], out_pin[0]}; in_pin[0] = pad_in[0]; in_pin[1] = pad_in[1]; end
2'd1: begin pad_out = {out_pin[2], out_pin[1]}; in_pin[1] = pad_in[0]; in_pin[2] = pad_in[1]; end
2'd2: begin
if (bug == 1) begin pad_out = {out_pin[1], out_pin[2]}; in_pin[2] = pad_in[0]; in_pin[1] = pad_in[1]; end // BUG=1
else begin pad_out = {out_pin[0], out_pin[2]}; in_pin[2] = pad_in[0]; in_pin[0] = pad_in[1]; end
end
default: ; // mode 3: pads low, nothing routed
endcase
end
// interrupt controller
always_comb begin
irq_status = (bug == 2) ? {irq_ip[1], irq_ip[2], irq_ip[0]} : irq_ip; // BUG=2: SPI and TIMER swapped
any = |(irq_status & mask);
irq_n = (bug == 3) ? any : !any; // BUG=3: wrong polarity
end
// read mux
always_comb begin
bus_rdata = 32'h0;
if (bus_req && !bus_we)
case (bus_addr[7:6])
2'd0: bus_rdata = rd[0];
2'd1: bus_rdata = rd[1];
2'd2: bus_rdata = rd[2];
2'd3: case (bus_addr[5:0])
6'h00: bus_rdata = {30'h0, pinmux};
6'h04: bus_rdata = {29'h0, irq_status};
6'h08: bus_rdata = {29'h0, mask};
default: bus_rdata = 32'h0;
endcase
endcase
end
endmodule
// ---------------------------------------------------------------------------
// Interface
// ---------------------------------------------------------------------------
interface tav_soc_if (input logic clk);
logic rst_n, bus_req, bus_we, irq_n;
logic [7:0] bus_addr;
logic [31:0] bus_wdata, bus_rdata;
logic [1:0] pad_out, pad_in;
clocking mon_cb @(posedge clk);
default input #1step;
input rst_n, bus_req, bus_we, bus_addr, bus_wdata, bus_rdata, pad_out, pad_in, irq_n;
endclocking
endinterface
// The test sets this so every mismatch knows which phase it came from.
int tav_phase = 0;
// ---------------------------------------------------------------------------
// Transactions
// ---------------------------------------------------------------------------
typedef enum {TAV_WR, TAV_RD, TAV_PAD, TAV_IDLE} tav_op_e;
class tav_soc_item extends uvm_sequence_item; // one bus or pad operation
tav_op_e op;
bit [7:0] addr;
bit [31:0] data; // write data, or pad value for TAV_PAD
`uvm_object_utils(tav_soc_item)
function new(string name = "tav_soc_item");
super.new(name);
endfunction
endclass
class tav_soc_cycle extends uvm_object; // what the monitor saw in one cycle
bit rst, req, we, irq_n;
bit [7:0] addr;
bit [31:0] wdata, rdata;
bit [1:0] pad_out, pad_in;
`uvm_object_utils(tav_soc_cycle)
function new(string name = "tav_soc_cycle");
super.new(name);
endfunction
endclass
// ---------------------------------------------------------------------------
// Sequences: the five phases
// ---------------------------------------------------------------------------
class tav_base_seq extends uvm_sequence #(tav_soc_item);
`uvm_object_utils(tav_base_seq)
function new(string name = "tav_base_seq");
super.new(name);
endfunction
task do_op(tav_op_e op, bit [7:0] addr = 0, bit [31:0] data = 0);
req = tav_soc_item::type_id::create("req");
start_item(req);
req.op = op; req.addr = addr; req.data = data;
finish_item(req);
endtask
task wr(bit [7:0] a, bit [31:0] d); do_op(TAV_WR, a, d); endtask
task rd(bit [7:0] a); do_op(TAV_RD, a); endtask
task pad(bit [1:0] v); do_op(TAV_PAD, 0, v); endtask
task idle(); do_op(TAV_IDLE); endtask
endclass
// Phase 1: what a first "it boots" test looks like: UART in the default mode
class tav_smoke_seq extends tav_base_seq;
`uvm_object_utils(tav_smoke_seq)
function new(string name = "tav_smoke_seq");
super.new(name);
endfunction
task body();
rd(8'h08); // UART ID
wr(8'hC0, 0); // pin mux mode 0
wr(8'h00, 32'h11); idle(); wr(8'h00, 32'h10); idle(); // toggle the UART output pin
pad(2'b01); rd(8'h04); pad(2'b00); rd(8'h04); // UART input pin
rd(8'h00);
endtask
endclass
// Phase 2: reset values, then write and read back each RW register on its own
class tav_reg_seq extends tav_base_seq;
`uvm_object_utils(tav_reg_seq)
function new(string name = "tav_reg_seq");
super.new(name);
endfunction
task body();
bit [7:0] all[12] = '{8'h00, 8'h04, 8'h08, 8'h40, 8'h44, 8'h48, 8'h80, 8'h84, 8'h88, 8'hC0, 8'hC4, 8'hC8};
bit [7:0] rw[5] = '{8'h00, 8'h40, 8'h80, 8'hC0, 8'hC8};
bit [31:0] pat[3] = '{32'hFC, 32'h00, 32'hA4}; // bits 0 and 1 kept low: no pins, no interrupts
foreach (all[k]) rd(all[k]);
foreach (rw[k]) foreach (pat[p]) begin wr(rw[k], pat[p]); rd(rw[k]); end
endtask
endclass
// Phase 3: write a different value to every RW register, then read them all back
class tav_alias_seq extends tav_base_seq;
`uvm_object_utils(tav_alias_seq)
function new(string name = "tav_alias_seq");
super.new(name);
endfunction
task body();
bit [7:0] rw[5] = '{8'h00, 8'h40, 8'h80, 8'hC0, 8'hC8};
bit [31:0] val[5] = '{32'h14, 32'h28, 32'h3C, 32'h00, 32'h00};
foreach (rw[k]) wr(rw[k], val[k]);
foreach (rw[k]) rd(rw[k]);
endtask
endclass
// Phase 4: every pin-mux mode, every block's output pin, every pad input
class tav_pinmux_seq extends tav_base_seq;
`uvm_object_utils(tav_pinmux_seq)
function new(string name = "tav_pinmux_seq");
super.new(name);
endfunction
task body();
bit [7:0] base[3] = '{8'h00, 8'h40, 8'h80};
foreach (base[b]) wr(base[b], 0); // all output pins low
for (int m = 0; m < 4; m++) begin
wr(8'hC0, m);
foreach (base[b]) begin wr(base[b], 1); idle(); wr(base[b], 0); idle(); end
for (int v = 0; v < 4; v++) begin
pad(v);
foreach (base[b]) rd(base[b] + 8'h04); // each block's STATUS
end
pad(0);
end
endtask
endclass
// Phase 5: each interrupt with the mask open, then with it closed
class tav_irq_seq extends tav_base_seq;
`uvm_object_utils(tav_irq_seq)
function new(string name = "tav_irq_seq");
super.new(name);
endfunction
task body();
bit [7:0] base[3] = '{8'h00, 8'h40, 8'h80};
bit [2:0] masks[2] = '{3'b111, 3'b000};
foreach (base[b]) wr(base[b], 0);
foreach (masks[k]) begin
wr(8'hC8, masks[k]);
foreach (base[b]) begin
wr(base[b], 2); idle(); // raise this block's interrupt
rd(8'hC4); rd(base[b] + 8'h04);
wr(base[b], 0); idle(); // clear it
rd(8'hC4);
end
end
endtask
endclass
// ---------------------------------------------------------------------------
// Driver: one operation per clock, driven on the falling edge
// ---------------------------------------------------------------------------
class tav_soc_driver extends uvm_driver #(tav_soc_item);
`uvm_component_utils(tav_soc_driver)
virtual tav_soc_if vif;
function new(string name, uvm_component parent);
super.new(name, parent);
endfunction
function void build_phase(uvm_phase phase);
if (!uvm_config_db#(virtual tav_soc_if)::get(this, "", "vif", vif))
`uvm_fatal("NOVIF", "no virtual interface")
endfunction
task run_phase(uvm_phase phase);
vif.rst_n <= 0; vif.bus_req <= 0; vif.bus_we <= 0; vif.bus_addr <= 0; vif.bus_wdata <= 0; vif.pad_in <= 0;
repeat (3) @(negedge vif.clk);
vif.rst_n <= 1;
forever begin
seq_item_port.get_next_item(req);
@(negedge vif.clk);
vif.bus_req <= 0; vif.bus_we <= 0;
case (req.op)
TAV_WR: begin vif.bus_req <= 1; vif.bus_we <= 1; vif.bus_addr <= req.addr; vif.bus_wdata <= req.data; end
TAV_RD: begin vif.bus_req <= 1; vif.bus_we <= 0; vif.bus_addr <= req.addr; end
TAV_PAD: vif.pad_in <= req.data[1:0];
default: ;
endcase
@(posedge vif.clk); #1; // done once the monitor has seen it
vif.bus_req <= 0; vif.bus_we <= 0;
seq_item_port.item_done();
end
endtask
endclass
// ---------------------------------------------------------------------------
// Monitor: one snapshot of the bus and the pins per clock
// ---------------------------------------------------------------------------
class tav_soc_monitor extends uvm_monitor;
`uvm_component_utils(tav_soc_monitor)
virtual tav_soc_if vif;
uvm_analysis_port #(tav_soc_cycle) ap;
function new(string name, uvm_component parent);
super.new(name, parent);
ap = new("ap", this);
endfunction
function void build_phase(uvm_phase phase);
if (!uvm_config_db#(virtual tav_soc_if)::get(this, "", "vif", vif))
`uvm_fatal("NOVIF", "no virtual interface")
endfunction
task run_phase(uvm_phase phase);
forever begin
tav_soc_cycle c;
@(vif.mon_cb);
c = tav_soc_cycle::type_id::create("c");
c.rst = (vif.mon_cb.rst_n !== 1'b1);
c.req = vif.mon_cb.bus_req; c.we = vif.mon_cb.bus_we; c.addr = vif.mon_cb.bus_addr;
c.wdata = vif.mon_cb.bus_wdata; c.rdata = vif.mon_cb.bus_rdata;
c.pad_out = vif.mon_cb.pad_out; c.pad_in = vif.mon_cb.pad_in; c.irq_n = vif.mon_cb.irq_n;
ap.write(c);
end
endtask
endclass
// ---------------------------------------------------------------------------
// Scoreboard: a spec model of the SoC, checked on every cycle
// ---------------------------------------------------------------------------
class tav_soc_scoreboard extends uvm_scoreboard;
`uvm_component_utils(tav_soc_scoreboard)
uvm_analysis_imp #(tav_soc_cycle, tav_soc_scoreboard) imp;
// the model, from the register map in the header
bit [7:0] ctrl[3];
bit [1:0] pinmux;
bit [2:0] mask;
bit [7:0] reset_ctrl[3] = '{8'h10, 8'h20, 8'h30};
bit [15:0] id[3] = '{16'h5541, 16'h5350, 16'h544D};
// which block drives each pad in each mode; 3 = nothing
int route[4][2] = '{'{0, 1}, '{1, 2}, '{2, 0}, '{3, 3}};
// results: [phase 1..5][kind 0 = register read, 1 = pads, 2 = interrupt pin]
int mism[6][3], checks[6][3], shown[3];
string kind_name[3] = '{"REG", "PIN", "IRQ"};
// reach
bit mode_toggled[4]; bit irq_seen[3];
function new(string name, uvm_component parent);
super.new(name, parent);
imp = new("imp", this);
endfunction
function void model_reset();
ctrl = reset_ctrl; pinmux = 0; mask = 0;
endfunction
function bit [2:0] irqs();
return {ctrl[2][1], ctrl[1][1], ctrl[0][1]};
endfunction
function bit in_pin(int blk, bit [1:0] pad_in);
for (int p = 0; p < 2; p++) if (route[pinmux][p] == blk) return pad_in[p];
return 0;
endfunction
function bit [31:0] exp_read(bit [7:0] a, bit [1:0] pad_in);
int blk = a[7:6];
bit [2:0] irq_now = irqs();
if (blk < 3)
case (a[5:0])
6'h0: return ctrl[blk];
6'h4: return {irq_now[blk], in_pin(blk, pad_in)};
6'h8: return id[blk];
default: return 0;
endcase
case (a[5:0])
6'h00: return pinmux;
6'h04: return irqs();
6'h08: return mask;
default: return 0;
endcase
endfunction
function void tav_check(int k, bit ok, string msg); // not "check": uvm_component already has check()
checks[tav_phase][k]++;
if (!ok) begin
mism[tav_phase][k]++;
if (shown[k] < 3) begin shown[k]++; `uvm_error("MISMATCH", $sformatf("phase %0d %s: %s", tav_phase, kind_name[k], msg)) end
end
endfunction
function void write(tav_soc_cycle c);
bit [1:0] exp_pad;
bit exp_irq_n;
if (c.rst) begin model_reset(); return; end
// pins, from the model state before this cycle's write
for (int p = 0; p < 2; p++) exp_pad[p] = (route[pinmux][p] < 3) ? ctrl[route[pinmux][p]][0] : 1'b0;
exp_irq_n = !(|(irqs() & mask));
tav_check(1, c.pad_out == exp_pad, $sformatf("mode %0d: pads=%b, expected %b", pinmux, c.pad_out, exp_pad));
tav_check(2, c.irq_n == exp_irq_n, $sformatf("IRQ_STATUS=%b mask=%b: irq_n=%b, expected %b", irqs(), mask, c.irq_n, exp_irq_n));
// reads
if (c.req && !c.we) begin
bit [31:0] e = exp_read(c.addr, c.pad_in);
tav_check(0, c.rdata == e, $sformatf("read 0x%02h (mode %0d, pads in %b) = 0x%0h, expected 0x%0h", c.addr, pinmux, c.pad_in, c.rdata, e));
end
// writes update the model
if (c.req && c.we) begin
if (c.addr[7:6] < 3 && c.addr[5:0] == 0) begin
ctrl[c.addr[7:6]] = c.wdata[7:0];
if (c.wdata[0]) mode_toggled[pinmux] = 1;
if (c.wdata[1]) irq_seen[c.addr[7:6]] = 1;
end
if (c.addr == 8'hC0) pinmux = c.wdata[1:0];
if (c.addr == 8'hC8) mask = c.wdata[2:0];
end
endfunction
function void tav_print_results();
string nm[6] = '{"", "smoke ", "regs ", "alias ", "pin mux", "irq "};
for (int p = 1; p <= 5; p++)
`uvm_info("RESULT", $sformatf("Phase %0d %s: reads=%0d wrong=%0d | pad cycles=%0d wrong=%0d | irq pin cycles=%0d wrong=%0d -> %s",
p, nm[p], checks[p][0], mism[p][0], checks[p][1], mism[p][1], checks[p][2], mism[p][2],
(mism[p][0] + mism[p][1] + mism[p][2] == 0) ? "PASS" : "FAIL"), UVM_NONE)
`uvm_info("REACH", $sformatf("pin-mux modes with an output toggled=%0d of 4, blocks that raised an interrupt=%0d of 3",
int'(mode_toggled[0]) + mode_toggled[1] + mode_toggled[2] + mode_toggled[3],
int'(irq_seen[0]) + irq_seen[1] + irq_seen[2]), UVM_NONE)
endfunction
endclass
// ---------------------------------------------------------------------------
// Environment and test
// ---------------------------------------------------------------------------
class tav_soc_env extends uvm_env;
`uvm_component_utils(tav_soc_env)
uvm_sequencer #(tav_soc_item) sqr;
tav_soc_driver drv;
tav_soc_monitor mon;
tav_soc_scoreboard scb;
function new(string name, uvm_component parent);
super.new(name, parent);
endfunction
function void build_phase(uvm_phase phase);
sqr = uvm_sequencer#(tav_soc_item)::type_id::create("sqr", this);
drv = tav_soc_driver::type_id::create("drv", this);
mon = tav_soc_monitor::type_id::create("mon", this);
scb = tav_soc_scoreboard::type_id::create("scb", this);
endfunction
function void connect_phase(uvm_phase phase);
drv.seq_item_port.connect(sqr.seq_item_export);
mon.ap.connect(scb.imp);
endfunction
endclass
class tav_soc_test extends uvm_test;
`uvm_component_utils(tav_soc_test)
tav_soc_env env;
function new(string name, uvm_component parent);
super.new(name, parent);
endfunction
function void build_phase(uvm_phase phase);
env = tav_soc_env::type_id::create("env", this);
endfunction
task run_phase(uvm_phase phase);
tav_smoke_seq s1 = tav_smoke_seq::type_id::create("s1");
tav_reg_seq s2 = tav_reg_seq::type_id::create("s2");
tav_alias_seq s3 = tav_alias_seq::type_id::create("s3");
tav_pinmux_seq s4 = tav_pinmux_seq::type_id::create("s4");
tav_irq_seq s5 = tav_irq_seq::type_id::create("s5");
phase.raise_objection(this);
tav_phase = 1; s1.start(env.sqr);
tav_phase = 2; s2.start(env.sqr);
tav_phase = 3; s3.start(env.sqr);
tav_phase = 4; s4.start(env.sqr);
tav_phase = 5; s5.start(env.sqr);
repeat (3) @(posedge env.drv.vif.clk);
env.scb.tav_print_results();
phase.drop_objection(this);
endtask
endclass
// ---------------------------------------------------------------------------
// Top
// ---------------------------------------------------------------------------
module tav_top;
logic clk = 0;
int BUG = 0;
always #5 clk = ~clk;
tav_soc_if vif (clk);
tav_mini_soc u_soc (.clk(clk), .rst_n(vif.rst_n), .bus_req(vif.bus_req), .bus_we(vif.bus_we),
.bus_addr(vif.bus_addr), .bus_wdata(vif.bus_wdata), .bus_rdata(vif.bus_rdata),
.pad_out(vif.pad_out), .pad_in(vif.pad_in), .irq_n(vif.irq_n), .bug(BUG));
initial begin
void'($value$plusargs("BUG=%d", BUG));
`uvm_info("TOP", $sformatf("Running with BUG=%0d", BUG), UVM_NONE)
uvm_config_db#(virtual tav_soc_if)::set(null, "uvm_test_top.env.*", "vif", vif);
run_test("tav_soc_test");
end
endmodule
What does the output show?
I ran the bench five times on Synopsys VCS X-2025.06-SP1 with UVM 1.2 on EDA Playground. The clean run:
UVM_INFO testbench.sv(445) @ 2395: uvm_test_top.env.scb [RESULT] Phase 1 smoke : reads=4 wrong=0 | pad cycles=12 wrong=0 | irq pin cycles=12 wrong=0 -> PASS
UVM_INFO testbench.sv(445) @ 2395: uvm_test_top.env.scb [RESULT] Phase 2 regs : reads=27 wrong=0 | pad cycles=42 wrong=0 | irq pin cycles=42 wrong=0 -> PASS
UVM_INFO testbench.sv(445) @ 2395: uvm_test_top.env.scb [RESULT] Phase 3 alias : reads=5 wrong=0 | pad cycles=10 wrong=0 | irq pin cycles=10 wrong=0 -> PASS
UVM_INFO testbench.sv(445) @ 2395: uvm_test_top.env.scb [RESULT] Phase 4 pin mux: reads=48 wrong=0 | pad cycles=123 wrong=0 | irq pin cycles=123 wrong=0 -> PASS
UVM_INFO testbench.sv(445) @ 2395: uvm_test_top.env.scb [RESULT] Phase 5 irq : reads=18 wrong=0 | pad cycles=49 wrong=0 | irq pin cycles=49 wrong=0 -> PASS
UVM_INFO testbench.sv(448) @ 2395: uvm_test_top.env.scb [REACH] pin-mux modes with an output toggled=4 of 4, blocks that raised an interrupt=3 of 3
102 register reads and 236 cycles of pins checked, in 2,395 ns of simulated time, all clean. REACH confirms the bench toggled an output in all 4 mux modes and raised all 3 interrupts.

+BUG=1, mux mode 2 wrong. Phases 1, 2, 3 and 5 passed: none of them selects mode 2. Phase 4 caught it in both directions, 4 wrong pad cycles and 4 wrong STATUS reads:
UVM_ERROR testbench.sv(412) @ 1325: uvm_test_top.env.scb [MISMATCH] phase 4 PIN: mode 2: pads=00, expected 10
UVM_ERROR testbench.sv(412) @ 1525: uvm_test_top.env.scb [MISMATCH] phase 4 REG: read 0x04 (mode 2, pads in 10) = 0x0, expected 0x1
The first line is the output path: UART’s pin should reach pad 1 and does not. The second is the input path: UART’s STATUS should see pad 1 and reads 0. A test that checked only outputs would have found half the bug.
+BUG=2, SPI and TIMER interrupts swapped. Only phase 5 caught it, and only through the status register:
UVM_ERROR testbench.sv(412) @ 2035: uvm_test_top.env.scb [MISMATCH] phase 5 REG: read 0xc4 (mode 3, pads in 00) = 0x4, expected 0x2
SPI raised its interrupt and bit 2, TIMER’s bit, went high. The chip pin was right every cycle, 0 IRQ mismatches, because my phase 5 only opens all mask bits or none, and then any interrupt pulls the pin low. Software reading the status register would service the wrong block.
+BUG=3, interrupt pin polarity. Every phase failed, from the first cycle after reset:
UVM_ERROR testbench.sv(412) @ 35: uvm_test_top.env.scb [MISMATCH] phase 1 IRQ: IRQ_STATUS=000 mask=000: irq_n=0, expected 1
No interrupt was pending, yet the pin said there was. Every register read was correct, 0 REG mismatches in all five phases. The bench only caught this because the monitor watches the pin on every cycle; a test that only reads registers would have passed.
+BUG=4, write to TIMER also writes SPI. The smoke and register tests passed, because they never read SPI after writing TIMER. The alias test caught it with its first read-back:
UVM_ERROR testbench.sv(412) @ 635: uvm_test_top.env.scb [MISMATCH] phase 3 REG: read 0x40 (mode 0, pads in 00) = 0x3c, expected 0x28
SPI’s CTRL holds 0x3C, the value written to TIMER. Phases 4 and 5 then saw the side effects: SPI’s output pin moving when only TIMER’s should (4 PIN), and SPI’s interrupt firing with TIMER’s (2 REG).
Across the five runs, the smoke test, the kind of test most teams write first, caught only the one bug that broke a pin on every cycle. Each of the other three needed the phase written for that kind of glue.
What about the areas this demo does not run?
A mini SoC in RTL simulation can check wiring, decode and registers. The other key areas need models, tools or netlists that a single-file demo does not have. Here is what each one involves; none of it was run for this post.
Protocol checks at block boundaries. Put a protocol checker (assertions or a passive monitor) on every bus where two blocks meet, and leave them on in every SoC test. Most integration bugs show up as an illegal handshake at a boundary long before they show up as a wrong result.
Control and data paths. Run the processor, DMA and external interfaces (UART, SPI, CAN, LIN and so on) at the same time, and fire interrupts while they run. Contention, arbitration and priority bugs only appear when several masters compete.
Reset and boot. Beyond reset values, walk through every boot source (internal ROM, external flash and so on) and check the chip lands in the right state. Apply reset in the middle of traffic, too.
Low power. The power intent is written in UPF or CPF: which domains switch off, where isolation cells and level shifters go. Simulate it at RTL with a power-aware simulator, test entry into and exit from every low-power mode, and check it again on the gate-level netlist to confirm the cells were really inserted.
Analog integration. Plain digital simulation cannot model analog behaviour well. Behavioural models in Verilog-AMS (or real-number models) let the analog blocks behave close to silicon in full-chip runs. A few critical analog blocks can be run in SPICE alongside the digital design.
Gate-level simulation. Gate-level runs catch timing problems, glitches and logic on the reset path that RTL hides. They are slow, so do not rerun every RTL test: pick the ones that exercise IO paths, digital-analog boundaries, clock gating and clock-switching muxes.
System use cases. Run what the customer will run: several applications at once, real traffic, real software. Long scenarios belong on an emulator or FPGA prototype.
Making the effort efficient
- Write the plan from the chip spec, so every feature maps to at least one test.
- Make every test self-checking, against a model like the scoreboard here, so a failing test explains itself.
- Generate the boring tests. Register reset and access tests, like phases 2 and 3 here, can be generated from the register map instead of written by hand.
- Randomize where it reaches corners: register values, the number and timing of resets, the wake-up pin, wake-up latency and pulse width.
- Use formal for connectivity. Pin muxes and interrupt wiring are pure connectivity; a formal connectivity check proves every path in every mode faster than any directed test.
- Run regressions early, at SoC level and on every IP drop, so SoC failures are SoC problems and not IP bugs.
What are the common mistakes in SoC integration verification?
Testing only the default configuration. The pin mux comes out of reset in mode 0, and so does almost every first test. A wrong leg in mode 2 passes every test that never selects mode 2.
Checking the mux in one direction. A pad has an output path and an input path. Toggle each block’s output and check the pad, then drive the pad and read the block’s STATUS. A mux can be right one way and wrong the other.
Using write-then-read-back as the only register test. Writing a register and reading the same register back proves that register works. It says nothing about which other registers that write also changed. Write every register first, then read them all.
Reading the interrupt status but never watching the pin. The status register can be right while the chip pin has the wrong polarity, and the other way round. Check both, and check the pin on every cycle, not only when the bus is busy.
Raising every interrupt at once. If all sources fire together, a swapped pair of wires still sets the same bits. Raise one source at a time, and check which bit moved.
Retesting the IP instead of the glue. The IP teams already ran thousands of tests on each block. SoC time is best spent on what nobody else checks: decode, muxes, interrupt and reset wiring, and the boundaries between blocks.
Summing single bits in SystemVerilog. In this bench the REACH line adds up one-bit flags. Written as flag[0] + flag[1] + flag[2], the sum is one bit wide and wraps; my first version reported 0 modes toggled when all four were. Cast the first term to int so the whole sum is 32 bits.
Naming a scoreboard method after a UVM phase. My first scoreboard had a helper called check(). Every uvm_component already has a check() method for the check phase, so VCS refused to compile: “Too many arguments in class-method ‘check'”. Prefix your own helpers (here tav_check()), and avoid check, report, build, connect, run, extract and final as method names in components.
How do you debug an integration mismatch?
- Read the kind first: REG, PIN or IRQ. That tells you whether to look at decode and registers, the mux, or the interrupt path.
- Read the context in the message: the mux mode, the pad inputs, the status and mask values the model expected.
- For a PIN mismatch, look up that mode in the mux table and find which block should drive the pad, then follow its output in the waveform.
- For a REG mismatch after a write elsewhere, suspect decode: find the write that changed a register it should not have touched.
- For an IRQ mismatch, check the status register and the pin separately: wrong status means wiring, wrong pin with right status means polarity or the mask.
When do you stop SoC verification?
You cannot simulate every state of a chip, so decide the goals up front, per area:
- Glue logic the SoC team wrote (decode, muxes, interrupt controller, clock and reset logic): full code coverage, and toggle coverage on every connection.
- Integration: every mux mode in both directions, every interrupt source on its own, every register’s reset value and access type, every boot source.
- Analog and low power: functional coverage on the behavioural models and on the power states from the UPF or CPF files.
- Regressions: passing consistently, with no unexplained coverage holes against the chip spec.
When every goal is met and every remaining hole has a written reason, you have evidence, not hope, that nothing in the intended function was missed.
Can AI write the SoC integration test?
Task: write a self-checking chip-level test for the mini SoC from the register map alone.
Tool: Claude, in a fresh session with no files and no tools, so it saw only the prompt.
Prompt (in full):
I am verifying a small SoC at chip level. The three IP blocks are already verified; I need a
self-checking SystemVerilog test that checks the SoC integration: address decode, the pin mux,
interrupt wiring and the chip interrupt pin. Write it as a plain SystemVerilog test module (no
UVM) that instantiates the DUT, drives the bus, and prints a PASS/FAIL summary with an error
count at the end.
DUT:
module tav_mini_soc (input logic clk, rst_n,
input logic bus_req, bus_we, input logic [7:0] bus_addr,
input logic [31:0] bus_wdata, output logic [31:0] bus_rdata,
output logic [1:0] pad_out, input logic [1:0] pad_in,
output logic irq_n, input int bug);
Tie the bug port to 0. The bus is single-cycle: hold bus_req, bus_we, bus_addr, bus_wdata for
one clock; a write takes effect at that rising edge; bus_rdata is combinational and valid in the
same cycle while bus_req=1 and bus_we=0. Reset is active-low rst_n.
Register map (byte addresses):
0x00 UART, 0x40 SPI, 0x80 TIMER. Each block has:
+0x0 CTRL RW, bits [7:0]. bit 0 drives the block's output pin, bit 1 raises its interrupt.
Reset value: UART 0x10, SPI 0x20, TIMER 0x30.
+0x4 STATUS RO. bit 0 = the block's input pin, bit 1 = its interrupt.
+0x8 ID RO. UART 0x5541, SPI 0x5350, TIMER 0x544D.
0xC0 PINMUX RW, bits [1:0], reset 0.
0xC4 IRQ_STATUS RO, bits [2:0] = UART, SPI, TIMER interrupts.
0xC8 IRQ_MASK RW, bits [2:0], reset 0.
Any other address reads 0 and ignores writes.
Pin mux (pad 0 / pad 1):
mode 0: UART / SPI mode 1: SPI / TIMER mode 2: TIMER / UART mode 3: both pads 0
A block's input pin is the pad it is routed to, or 0 if it is not routed.
Chip interrupt pin irq_n is active low: irq_n = 0 when any (IRQ_STATUS & IRQ_MASK) bit is 1.
What came back: a 338-line test module that was better than I expected. It built its own model of the registers, the mux table and the interrupt pin from the spec. After every single bus write it re-read all 12 registers and checked both pins. It swept all 256 addresses, wrote to every unmapped address and every read-only register, tried every mux mode with every output pattern and pad input, and every interrupt pattern with every mask, then finished with 1,000 random operations. It also listed two assumptions my spec did not state: that unused upper bits read 0, and that only exact addresses decode.
How I validated it: I did not change a line. tav_soc_ai_check.sv runs it against the same SoC with the same four bugs. The AI tied the bug port to 0, as asked, so my top module forces that port from +BUG=n instead of editing its code.
What happened: on VCS, the AI’s own summary for each run:
| Run | Checks | Errors | First error |
|---|---|---|---|
| (none) | 20,749 | 0 | none: PASS |
+BUG=1 mux mode 2 | 20,749 | 497 | T5 mode=2: UART.STATUS got 0, expected 1 |
+BUG=2 irq lines swapped | 20,749 | 879 | T6: IRQ_STATUS got 0x4, expected 0x2 |
+BUG=3 irq_n polarity | 20,749 | 2,779 | in reset: irq_n got 0, expected 1 |
+BUG=4 decode alias | 20,749 | 1,701 | T2 TIMER.CTRL write: SPI.CTRL got 0x78, expected 0xA4 |
It caught all four bugs, with no false alarm on the clean SoC. On two of them it did better than my bench. It caught the alias in its second test, because it re-reads every register after every write; my register phase missed it and only the alias phase found it. And it caught the swapped interrupts on the chip pin as well as in the status register, because it tried every one of the 8 mask values; my bench only used “all on” and “all off”, which is why my pin check saw nothing wrong.
Where it falls short: cost and scale. It made 20,749 checks in 332,081 ns of simulated time. My bench made 338 (102 reads and 236 pin cycles) in 2,395 ns and caught the same four bugs. That is about 61 times the checks and 139 times the simulated time. Most of it comes from one habit: after every single write, re-read all 12 registers. That grows with the number of writes times the number of registers. With 12 registers it is fine. On a real SoC with thousands of registers, it does not fit in a regression.
Two more limits. It checks the pins only right after its own bus accesses, so a pin that glitched between them would not be seen; my monitor watches the pins on every cycle. And its two assumptions, upper bits read 0 and only exact addresses decode, were right for this SoC only because I knew the spec well enough to confirm them.
Lesson: this AI test was more thorough than mine, and its two extra catches show where my bench was thin: masks between all-on and all-off, and re-reading the rest of the map after a write. I have added both to the practice challenge. Use AI to find the checks you forgot, then decide which ones are worth their cost before they go into a regression that has to scale to the real chip.
Interview questions on SoC verification
- What does an SoC team verify that IP teams do not? The integration: address decode, pin muxing, interrupt and reset wiring, clocks, the paths between blocks, low power and system use cases. The blocks themselves are assumed verified.
- How would you verify a pin mux? Every mode, every function, both directions: drive each block’s output and check the pad, drive each pad and check the block’s input. Then prove it with a formal connectivity check, because the number of mode and pin combinations grows fast.
- Why can a write-then-read-back register test miss a decode bug? It only reads the register it just wrote. If the write also changed another register through an alias, nothing reads that register back. Write all registers, then read them all.
- The interrupt status bit is right but the CPU never sees the interrupt. What do you check? The mask, then the chip pin’s polarity and its connection to the interrupt controller of the CPU. Status and pin are separate paths.
- How do you pick which tests to run at gate level? Not all of them; gate-level runs are slow. Pick tests that exercise IO paths, reset logic, clock gating, clock-switching muxes and digital-analog boundaries.
- How do you know when SoC verification is done? Coverage goals per area are met: code and toggle coverage on the glue, every mux mode and interrupt source exercised, low-power states covered, and no unexplained holes against the chip spec.
- Why generate register tests instead of writing them? Register maps have hundreds or thousands of fields and change often. Generating reset and access tests from the map (SystemRDL or IP-XACT) keeps them correct and frees time for the tests that need thought.
Practice challenge
Take tav_soc_integration_uvm.sv and try these, in order:
- Add a fifth phase that applies reset in the middle of pin-mux traffic, and check every register and pin returns to its reset value.
- Add
+BUG=5: the UART’s input pin reads pad 0 in mode 2 instead of pad 1. Which phase catches it, and which check kind? - Add a covergroup on (mux mode, block, pad) and use it to prove phase 4 visited every combination.
- Replace phases 2 and 3 with a generic register test that reads the register list from a table, so adding a register only means adding a row.
- In phase 5, use every one of the 8 mask values instead of only all-on and all-off. Rerun +BUG=2 and see the chip pin go wrong too, as it did in the AI’s test.
- In phase 2, after each write, read the other RW registers as well. Rerun +BUG=4 and compare when it is caught, and how many extra reads it costs.
Frequently asked questions
What is the difference between SoC verification and IP verification?
IP verification checks one block against its own spec. SoC verification assumes each block is already verified and checks the chip: how blocks are connected, share pins, reset, boot, raise interrupts and pass traffic to one another.
What are the key areas to consider during SoC verification?
Pin muxing, address decode, interrupt wiring and polarity, register access, reset and boot, protocol checks at block boundaries, control and data paths, low power, analog integration, gate-level and SPICE simulation, and system-level use cases.
Why is pin muxing so important in SoC verification?
A chip has far fewer pins than its blocks have signals, so pins are shared through a mux. If one leg is wrong in one mode, the chip talks to the wrong block, and only a test that selects that mode will notice.
How do you catch address aliasing?
Write a different value to every writable register first, then read all of them back. An alias shows up as a register holding a value that was written somewhere else.
How do you verify low-power features in an SoC?
Describe the intent in UPF or CPF, simulate it with a power-aware simulator, test entry into and exit from each low-power mode, and check isolation cells and level shifters at both RTL and gate level.
When do you stop SoC verification?
When the coverage goals for each area are met and every remaining hole is explained: full code and toggle coverage on the glue logic, every mux mode and interrupt source exercised, low-power states covered, and a regression that passes consistently.
References
- IEEE 1800-2017, SystemVerilog: the language the bench and the RTL are written in.
- Accellera UVM 1.2: the methodology used for the bench.
- Accellera SystemRDL: a standard way to describe register maps and generate register tests from them.
- Accellera Verilog-AMS: the language for analog behavioural models in full-chip runs.
- IEEE 1801 (UPF), the Unified Power Format standard for low-power intent.
- The earlier version of this post drew on the EDN article “How to verify SoCs”.
- The code for this post: tav-verification-basics on GitHub.
Related lessons
- SoC verification flow: how blocks come together from IP to chip.
- Directed testing vs constrained-random verification: when to hand-write a test and when to randomize.
- Clock monitors in SoC verification: watching every clock at chip level.
- RISC-V verification with an ISS golden model: checking the processor core inside the SoC.
- Where to use formal verification: why connectivity and pin muxes suit formal.
- How to build a strong verification plan: turning the key areas into a plan.

Nice summary of all area. One additional point I see is “device life cycle verification” and safety verification
Thank you Vivek 🙂
Thank you Hardik for the knowledge and sharing!
Thank you Lucas Phuc Nguyen 🙂