Fix X value problem in chip_sw_sleep_pin_wake Change-Id: I90abeae7ba4c190b74f5a838d22df80ea6175527
diff --git a/hw/top_matcha/dv/chip_sim_cfg.hjson b/hw/top_matcha/dv/chip_sim_cfg.hjson index 9486b91..d9cf1d4 100644 --- a/hw/top_matcha/dv/chip_sim_cfg.hjson +++ b/hw/top_matcha/dv/chip_sim_cfg.hjson
@@ -2112,6 +2112,7 @@ "chip_sw_sensor_ctrl_status", "chip_sw_sleep_pin_mio_dio_val", "chip_sw_sleep_pin_retention", + "chip_sw_sleep_pin_wake", "chip_sw_sleep_pwm_pulses", "chip_sw_smc_cam_irq_test", "chip_sw_smc_ctrl_test",
diff --git a/hw/top_matcha/dv/env/seq_lib/chip_sw_sleep_pin_wake_vseq.sv b/hw/top_matcha/dv/env/seq_lib/chip_sw_sleep_pin_wake_vseq.sv index 4925dc0..77ddd03 100644 --- a/hw/top_matcha/dv/env/seq_lib/chip_sw_sleep_pin_wake_vseq.sv +++ b/hw/top_matcha/dv/env/seq_lib/chip_sw_sleep_pin_wake_vseq.sv
@@ -42,7 +42,8 @@ // SW-randomized values. top_matcha_pkg::pad_type_e pad_type; int unsigned pad_idx; - + logic [DioCount-1:0] periph_to_dio_oe; + logic [MioOutCount-1:0] periph_to_mio_oe; virtual task body(); string printed_log; super.body(); @@ -69,6 +70,11 @@ // Enable weak pulls on MIOs as well to avoid assertion errors. cfg.chip_vif.disconnect_all_interfaces(.disconnect_default_pulls(0)); + periph_to_dio_oe = '0; + periph_to_mio_oe = '0; + // Disabling output enables for pads so they can be driven on without contradictions. + void'(cfg.chip_vif.signal_probe_pinmux_periph_to_dio_oe_i(SignalProbeForce, periph_to_dio_oe)); + void'(cfg.chip_vif.signal_probe_pinmux_periph_to_mio_oe_i(SignalProbeForce, periph_to_mio_oe)); drive_pad(pad_type, pad_idx, 0); `DV_WAIT(cfg.chip_vif.pwrmgr_low_power); #(exit_delay * 1ns); @@ -81,10 +87,10 @@ fork begin `DV_WAIT(cfg.sw_test_status_vif.sw_test_status == SwTestStatusInBootRom) - - drive_pad(pad_type, pad_idx, 1'bz); - cfg.chip_vif.gpios_if.set_pulldown_en({32{1'b1}}); + // Drive 0 on the pad, so that the mios and sw_straps are identical. + cfg.chip_vif.mios_if.drive_pin(pad_idx, 0); cfg.chip_vif.sw_straps_if.drive(0); + cfg.chip_vif.gpios_if.set_pulldown_en({32{1'b1}}); end // On low power exit, the ROM restarts execution. The testbench at some point, drives the SW // strap pins again to legal values so that the ROM does not bomb. It may be possible that the