[dv/spi_device] revert #17124
This PR reverts #17124 as design is not fixed.
Signed-off-by: Cindy Chen <chencindy@opentitan.org>
diff --git a/hw/ip/spi_device/dv/env/seq_lib/spi_device_pass_base_vseq.sv b/hw/ip/spi_device/dv/env/seq_lib/spi_device_pass_base_vseq.sv
index 46ede5e..c714c0b 100644
--- a/hw/ip/spi_device/dv/env/seq_lib/spi_device_pass_base_vseq.sv
+++ b/hw/ip/spi_device/dv/env/seq_lib/spi_device_pass_base_vseq.sv
@@ -321,7 +321,8 @@
end else begin
// flash mode only supports these 2 values.
`DV_CHECK_STD_RANDOMIZE_WITH_FATAL(sck_polarity_phase,
- sck_polarity_phase inside {0, 'b11};)
+ // TODO (#16339), add back 'b11 once this issue is fixed
+ sck_polarity_phase inside {0};)
end
cfg.spi_host_agent_cfg.sck_polarity[0] = sck_polarity_phase[0];
cfg.spi_host_agent_cfg.sck_phase[0] = sck_polarity_phase[1];
diff --git a/hw/ip/spi_device/dv/tb/tb.sv b/hw/ip/spi_device/dv/tb/tb.sv
index fb49f77..77d8c3b 100644
--- a/hw/ip/spi_device/dv/tb/tb.sv
+++ b/hw/ip/spi_device/dv/tb/tb.sv
@@ -109,7 +109,7 @@
`CONNECT_SPI_IO(spi_if, sd_in, sd_out, sd_out_en, 2)
`CONNECT_SPI_IO(spi_if, sd_in, sd_out, sd_out_en, 3)
- assign spi_if_pass.sck = pass_out.sck & pass_out.sck_en;
+ assign spi_if_pass.sck = pass_out.sck;
// if passthrough_en is low, set csb inactive as the whole passthrough interface is off
assign spi_if_pass.csb[0] = pass_out.csb || !pass_out.passthrough_en;
assign spi_if_pass.csb[1] = 1; // only 1 passthrough CSB