Repair an active-low isolation control and a released bus, while preserving the requested location metadata.
Hardware context: A switched core with zero, one, latched and released outputs. Keep powered receivers safe using correctly powered and controlled isolation.
Repair an active-low isolation control and a released bus, while preserving the requested location metadata.
The RTL contains no isolation cells. Your UPF adds them at the selected paths. Read the contract table before editing.
The supplied UPF file already defines the domains and their supplies. Keep that file loaded.
Full specification
| Requirement | Contract |
|---|---|
| Control | Every cell uses iso_n, active low. |
| Local output | Port a clamps to 0; request self. |
| Parent output | Port b clamps to 1; request parent. |
| Shared bus driver | Port z releases its output with Z; request fanout. This is an output driver, not an inout port. |
| Legacy automatic request | Port c clamps to 0; preserve automatic as an OpenPA compatibility request. |
| Legacy sibling request | Port spare clamps to 1; preserve sibling as an OpenPA compatibility request. |
| Supplies and extent | All cells use AON; isolate outputs only. Keep the provided domains and supplies. |
Simulator note: OpenPA checks requested location metadata. Its simulation rewrites connections in the parent; this task does not prove physical placement.
What the Grader Checks
OpenPA reads your file. A refusal ends the check with OpenPA's message and line. Otherwise every row below must pass.
| Row | Rule |
|---|---|
| Data, isolation and supply sequence | public scenario: Run shows it |
| Additional sequence B | hidden scenario |
| Additional sequence C | hidden scenario |
| Intent equals the reference | the domain of every instance; the primary supply of every domain; supply ports, nets and their connections; isolation cells (clamp, enable, sense, supply); where each isolation cell is placed |
| Power cells | at most 5 |
The Design
The power-unaware RTL your UPF describes (top boundary_soc). Open a file to read it.
island.sv
module island(input logic [4:0] d, output wire a, b, c, z, spare);
assign a=d[0]; assign b=d[1]; assign c=d[2]; assign z=d[3]; assign spare=d[4];
endmodule
module boundary_soc(input logic [4:0] d, input logic iso, iso_n,
output wire a,b,c,z,spare);
island u_tx(.d(d),.a(a),.b(b),.c(c),.z(z),.spare(spare));
endmodule
Given UPF Files
Your file may load these with load_upf. The grader uses the same text.
boundary.upf
upf_version 4.0
set_design_top boundary_soc
create_power_domain PD_TOP -include_scope
create_power_domain PD_TX -elements {u_tx}
create_supply_port VA -direction in
create_supply_port VT -direction in
create_supply_port VG -direction in
create_supply_net NA
create_supply_net NT
create_supply_net NG
connect_supply_net NA -ports {VA}
connect_supply_net NT -ports {VT}
connect_supply_net NG -ports {VG}
create_supply_set AON -function {power NA} -function {ground NG}
create_supply_set TX -function {power NT} -function {ground NG}
associate_supply_set AON -handle PD_TOP.primary
associate_supply_set TX -handle PD_TX.primary
The Public Scenario
Data, isolation and supply sequence. Run checks its output and shows the expected lines and any failure.
tb.sv (public scenario)
`timescale 1ns/1ps
module tb;
import UPF::*;
logic [4:0] d=0; logic iso=0, iso_n=1;
wire a,b,c,z,spare;
boundary_soc dut(.*);
task show(input string s); $display("%s a=%b b=%b c=%b z=%b spare=%b",s,a,b,c,z,spare); endtask
initial begin
void'(supply_on("VA",1.0)); void'(supply_on("VT",1.0)); void'(supply_on("VG",0.0));
#5;
d=5'b01010; #2; show("live"); iso_n=0; #2; show("isolated"); void'(supply_off("VT")); #2; show("off");
#5; $finish;
end
endmodule
Examples
Example 1
The Starter Report- Input
The starter UPF, read by OpenPA
- OpenPA reports (recorded)
Strategies set_isolation LOCAL (answer.upf:2): clamp 0, enable iso_n active high, supply AON, location self set_isolation PARENT (answer.upf:3): clamp 1, enable iso_n active high, supply AON, location parent set_isolation BUS (answer.upf:4): clamp 0, enable iso_n active high, supply AON, location self set_isolation OLD_AUTO (answer.upf:5): clamp 0, enable iso_n active high, supply AON, location automatic set_isolation OLD_SIB (answer.upf:6): clamp 1, enable iso_n active high, supply AON, location sibling
Read the report before making the first edit.
Example 2
Before Adding Strategies- Input
The supplied domains and rails, without isolation strategies
- OpenPA reports (recorded)
Strategies
Supply wiring alone does not insert isolation.
Example 3
The Sample Sequence- Input
The reference UPF on the public bench
- The bench prints (recorded)
live a=0 b=1 c=0 z=1 spare=0 isolated a=0 b=1 c=0 z=z spare=1 off a=0 b=1 c=0 z=z spare=1
Data passes while isolation is inactive. The later rows exercise the output contract.
Constraints and Contract
- Submit the complete UPF answer. Keep the provided load_upf command.
- Use the signals and supply sets named in the table. Hidden sequences change data and control timing.
Hints
Hint 1
Trace the driver and each receiver separately. A port name and an instance name have different precedence.
Hint 2
Check active polarity before changing the clamp value. Inspect the static report as well as the output.
Hint 3
Start with the transparent case, then assert isolation before switching off a rail.
What the grader checks: The judge checks power intent and simulated values. Location metadata is checked, but physical placement and port attributes are outside this model.
Run checks the public scenario only and never accepts. Submit runs every row. OpenPA is our open power-aware tool: it reads the UPF, writes a power-aware copy of the RTL, and Icarus runs that copy.
See all 2 problems on this path