A wake wire crosses a sleeping transmitter. Complete the library handoff so the buffer can still carry a request.
Hardware context: A switchable transmitter and a keep-alive buffer. Match power intent to library signal and supply pins.
Wrap the repeater command in draw {...}. Put the three UPF cell definitions before the board load. Compare the simulated local output c with a drawn buffer on the surviving rail. The worksheet checks the proposed repeater.
Full specification
| Decision | Board requirement |
|---|---|
| Feedthrough | Request a repeater named RELAY in PD_TX on u_tx/c. |
| Keep-alive rail | Use the board supply that stays live when VT drops. |
| Clock buffer | Define the listed always-on cell. Follow its output power relationship to the surviving pin. |
| Local connections | Identify the switchable primary power and the ground pin on that buffer. |
| Pad protection | Drawn ENTRY has a ground-only protection diode on PAD returning to RETURN. Describe it with define_diode_clamp. |
| Retained storage | Drawn MEM2 has backup BATT, ground GND and switched RUN. Describe all three pins with define_retention_cell. |
| SKY130 cell | Group | Attribute | Value |
|---|---|---|---|
| sky130_fd_sc_hd__lpflow_clkbufkapwr_4 | cell | always_on | true |
| sky130_fd_sc_hd__lpflow_clkbufkapwr_4 | pg_pin KAPWR | pg_type | backup_power |
| sky130_fd_sc_hd__lpflow_clkbufkapwr_4 | pg_pin VGND | pg_type | primary_ground |
| sky130_fd_sc_hd__lpflow_clkbufkapwr_4 | pg_pin VNB | pg_type | nwell |
| sky130_fd_sc_hd__lpflow_clkbufkapwr_4 | pg_pin VPB | pg_type | pwell |
| sky130_fd_sc_hd__lpflow_clkbufkapwr_4 | pg_pin VPWR | pg_type | primary_power |
| sky130_fd_sc_hd__lpflow_clkbufkapwr_4 | pin A | related_power_pin | KAPWR |
| sky130_fd_sc_hd__lpflow_clkbufkapwr_4 | pin X | function | (A) |
| sky130_fd_sc_hd__lpflow_clkbufkapwr_4 | pin X | power_down_function | (!KAPWR+VGND) |
| sky130_fd_sc_hd__lpflow_clkbufkapwr_4 | pin X | related_power_pin | KAPWR |
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 |
|---|---|
| Board sequence | public scenario: Run shows it |
| Second board trial | hidden scenario |
| Intent equals the reference | the domain of every instance; supply ports, nets and their connections; the primary supply of every domain; supply sets and switches; isolation cells (clamp, enable, sense, supply); where each isolation cell is placed; level shifters; retained registers and their controls; power states; switch names, acknowledge wires, supplies and delays |
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.
board.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
set_isolation PARK -domain PD_TX -elements {u_tx/a} -clamp_value 1 -isolation_signal iso -isolation_supply AON -location parent
proc draw {card} {set_design_attributes -elements {.} -attribute [list handoff $card]}
The Public Scenario
Board 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=1, iso_n=0;
wire a,b,c,z,spare;
boundary_soc dut(.*);
task sample(input string phase);
logic keep_on, local_on;
#2;
keep_on=get_supply_on_state(get_supply_value("AON.power"));
local_on=get_supply_on_state(get_supply_value("PD_TX.primary.power"));
$display("%s wake=%b local=%b keep=%b local_path=%b keep_path=%b",phase,d[2],
local_on,keep_on,c,keep_on ? d[2] : 1'bx);
endtask
initial begin
void'(supply_on("VG",0.0)); void'(supply_on("VA")); void'(supply_on("VT"));
d[2]=1'b0; sample("both_live");
void'(supply_off("VT")); sample("local_cut");
d[2]=~d[2]; sample("wake_changes");
void'(supply_off("VA")); sample("backup_cut"); $finish;
end
endmoduleExamples
Example 1
Connected Supply Nets (Recorded)- Input
Load the supplied board file.
- OpenPA reports (recorded)
Supply network NA: port VA {port:VA net:NA fn:AON.power fn:PD_TOP.primary.power} NT: port VT {port:VT net:NT fn:TX.power fn:PD_TX.primary.power} NG: port VG {port:VG net:NG fn:AON.ground fn:TX.ground fn:PD_TOP.primary.ground fn:PD_TX.primary.ground}
Follow each supply port to the net it drives.
Example 2
Domain Ownership (Recorded)- Input
Load the supplied board file.
- OpenPA reports (recorded)
Power domains PD_TOP (board.upf:3): boundary_soc primary supply AON: power NA, ground NG PD_TX (board.upf:4): u_tx primary supply TX: power NT, ground NG
Read the domain ownership and follow each primary supply.
Example 3
Board Sequence (Recorded)- Input
Apply the public bench stimulus.
- The bench prints (recorded)
both_live wake=0 local=1 keep=1 local_path=0 keep_path=0 local_cut wake=0 local=0 keep=1 local_path=x keep_path=0 wake_changes wake=1 local=0 keep=1 local_path=x keep_path=1 backup_cut wake=1 local=0 keep=0 local_path=x keep_path=x
At wake_changes only the keep-alive path follows wake. Removing VA then disables that path too.
Constraints and Contract
- Preserve the supplied board connections and use only the requested handoff entries.
Hints
Hint 1
Follow the board names through the supplied files.
Hint 2
Request a repeater named RELAY in PD_TX on u_tx/c.
Hint 3
Check the return path as well as the positive supply.
What the grader checks: OpenPA and Icarus run the abstract board. The worksheet checks cell or library choices independently.
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