test(spi_device): Filter Read Status

As Read Status data is returned by SPI_DEVICE, filter it out.

Signed-off-by: Eunchan Kim <eunchan@opentitan.org>
diff --git a/hw/ip/spi_device/pre_dv/program/prog_passthrough_sw.sv b/hw/ip/spi_device/pre_dv/program/prog_passthrough_sw.sv
index ebf0e02..f18256c 100644
--- a/hw/ip/spi_device/pre_dv/program/prog_passthrough_sw.sv
+++ b/hw/ip/spi_device/pre_dv/program/prog_passthrough_sw.sv
@@ -104,6 +104,17 @@
       4'b 0001
     );
 
+    // FILTER
+    // Read STATUS filtered.
+    // WREN/ WRDI go through as no SPI_HOST IP in TB yet.
+    // PROGRAM/ BLOCK ERASE go through as same reason as WREN/ WRDI
+    tlul_write(
+      clk, h2d, d2h,
+      32'(spi_device_reg_pkg::SPI_DEVICE_CMD_FILTER_0_OFFSET),
+      32'h 0000_0020, // [5] := 1
+      4'b 1111
+    );
+
     // CMD_INFO
     init_cmdinfo_list();