From b50ef9ff39a38aefbb1765ed38cc59837bf139ca Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 26 Jan 2020 11:23:52 -0500 Subject: [PATCH] Tests: Disabled test for 5.9. --- test_regress/t/t_string.v | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test_regress/t/t_string.v b/test_regress/t/t_string.v index 33107286f..3dbd39130 100644 --- a/test_regress/t/t_string.v +++ b/test_regress/t/t_string.v @@ -20,6 +20,8 @@ module t (/*AUTOARG*/ string s3; reg eq; + byte unpack1[0:4]; + // Operators == != < <= > >= {a,b} {a{b}} a[b] // a.len, a.putc, a.getc, a.toupper, a.tolower, a.compare, a.icompare, a.substr // a.atoi, a.atohex, a.atooct, a.atobin, a.atoreal, @@ -44,6 +46,20 @@ module t (/*AUTOARG*/ `checkh(s < "b", 1'b1); `checkh(s <= " ", 1'b0); `checkh(s <= "a", 1'b1); + +`ifndef VCS +`ifndef VERILATOR +`ifndef NC + // IEEE 1800-2017 5.9 assignment to byte array + unpack1 = "five"; + `checkh(unpack1[0], "f"); + `checkh(unpack1[1], "i"); + `checkh(unpack1[2], "v"); + `checkh(unpack1[3], "e"); + `checkh(unpack1[4], 8'h0); +`endif +`endif +`endif end // Test loop