The link crosses a host rail in both directions. Its local loopback stays on the link rail in every mode.
Hardware context: A variable-voltage link feeding a fixed-voltage host. Cover both voltage orders and preserve a same-rail monitor path.
The link crosses a host rail in both directions. Its local loopback stays on the link rail in every mode.
Load board.upf, then add the strategy described in the table.
Full specification
| Decision | Board requirement |
|---|---|
| Incoming path | Use RX for inputs to PD_UNIT. Cover rising and falling voltage differences. |
| Outgoing paths | Use TX for outputs to HOST from UNIT. Start with ack and add credit with -update. |
| Threshold | Use 0.15 V on RX and TX. Keep L2 and D11 silent in every legal mode. SLEEP needs no translation or clamp in this exercise. |
| Cell supplies | Power each input from its driver rail and each output from its receiver rail. The default connections do this. |
| Placement | Request parent placement for TX. |
| Local exception | Write an explicit -no_shift on u_link/loopback. Its observer shares UNIT. |
| Cell budget | Shift d, ack and credit only. Preserve board wiring and legal states. |
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 |
| Additional sequence B | hidden scenario |
| Additional sequence C | hidden scenario |
| Intent equals the reference | level shifters; the domain of every instance; the primary supply of every domain; supply ports, nets and their connections; power states |
| UPF forms | |
| Power cells | at most 3 |
| Static report | no forbidden finding |
The Design
The power-unaware RTL your UPF describes (top link_soc). Open a file to read it.
bridge.sv
module sender(input logic [3:0] d, output wire [3:0] credit, ack, loopback);
assign credit=d;
assign ack=~d;
assign loopback=d;
endmodule
module observer(input wire [3:0] pin);
wire [3:0] sample = pin;
endmodule
module link_soc(input logic [3:0] d, input logic clamp, output wire [3:0] credit, ack);
wire [3:0] local_bus;
sender u_link(.d(d), .credit(credit), .ack(ack), .loopback(local_bus));
observer u_watch(.pin(local_bus));
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 link_soc
create_power_domain PD_TOP -include_scope
create_power_domain PD_UNIT -elements {u_link}
create_supply_port VHOST -direction in
create_supply_net HOST_N
connect_supply_net HOST_N -ports {VHOST}
create_supply_port VUNIT -direction in
create_supply_net UNIT_N
connect_supply_net UNIT_N -ports {VUNIT}
create_supply_port VKEEP -direction in
create_supply_net KEEP_N
connect_supply_net KEEP_N -ports {VKEEP}
create_supply_port VSS -direction in
create_supply_net GND_N
connect_supply_net GND_N -ports {VSS}
create_supply_set HOST -function {power HOST_N} -function {ground GND_N}
create_supply_set UNIT -function {power UNIT_N} -function {ground GND_N}
create_supply_set KEEP -function {power KEEP_N} -function {ground GND_N}
associate_supply_set HOST -handle PD_TOP.primary
associate_supply_set UNIT -handle PD_UNIT.primary
create_power_domain PD_WATCH -elements {u_watch}
associate_supply_set UNIT -handle PD_WATCH.primary
add_port_state VHOST -state {NOM 1.0}
add_port_state VUNIT -state {ECO 0.8} -state {MATCH 1.0} -state {BOOST 1.2} -state {SLEEP off}
create_pst MODES -supplies {VHOST VUNIT}
add_pst_state ECO -pst MODES -state {NOM ECO}
add_pst_state MATCH -pst MODES -state {NOM MATCH}
add_pst_state BOOST -pst MODES -state {NOM BOOST}
add_pst_state SLEEP -pst MODES -state {NOM SLEEP}
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 [3:0] d=0; logic clamp=0;
wire [3:0] credit, ack;
link_soc dut(.*);
task sample(input string mode_name, input real voltage, input logic [3:0] word);
void'(supply_on("VUNIT",voltage)); d=word; #3;
$display("%s unit=%0.2f host=1.00 sent=%h credit=%h ack=%h tap=%h",mode_name,voltage,d,credit,ack,dut.u_watch.pin);
endtask
initial begin
void'(supply_on("VHOST",1.0)); void'(supply_on("VSS",0.0));
sample("match",1.0,3); sample("eco",0.8,5); sample("boost",1.2,9);
#2; $finish;
end
endmodule
Examples
Example 1
Recorded Board Connections- Input
Load board.upf alone.
- OpenPA reports (recorded)
Power domains PD_TOP (board.upf:3): link_soc primary supply HOST: power HOST_N, ground GND_N 0 register(s); 0 memory(ies) PD_UNIT (board.upf:4): u_link primary supply UNIT: power UNIT_N, ground GND_N [switchable] 0 register(s); 0 memory(ies) PD_WATCH (board.upf:22): u_watch primary supply UNIT: power UNIT_N, ground GND_N [switchable] 0 register(s); 0 memory(ies)
Locate the unit in the power-domain report.
Example 2
Recorded Starting Policy- Input
Compile the starter.
- OpenPA reports (recorded)
Strategies set_level_shifter RX (answer.upf:2): rule high_to_low, threshold 0.15 V
Read this selection against the board requirements.
Example 3
Recorded Board Sequence- Input
Run the public bench with the completed policy.
- The bench prints (recorded)
match unit=1.00 host=1.00 sent=3 credit=3 ack=c tap=3 eco unit=0.80 host=1.00 sent=5 credit=5 ack=a tap=5 boost unit=1.20 host=1.00 sent=9 credit=9 ack=6 tap=9
The receiver sees changing data across all three powered modes. Check D11 alongside the data rows.
Constraints and Contract
- Keep board.upf loaded. Preserve its domain and supply connections.
- The sample and hidden sequences run on OpenPA and Icarus.
Hints
Hint 1
Trace d into the link, then trace ack back out.
Hint 2
Check both voltage orders before choosing the rule.
Hint 3
Read the monitor supply before counting translators.
What the grader checks: The judge checks the modeled paths and their behavior in Icarus. Physical implementation is outside this exercise.
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 1 problem on this path