Change NBA to BA in test in case of array of struct

Signed-off-by: Ryszard Rozak <rrozak@antmicro.com>
This commit is contained in:
Ryszard Rozak 2026-02-09 15:01:55 +01:00
parent 485e32a56e
commit 681fe77f72
1 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ module t (
always @(posedge clk) begin
cyc <= cyc + 1;
if (cyc == 0) begin
s_array[1].x <= 1;
s_array[1].x = 1;
my_struct.x <= 1;
end
else if (cyc == 1) begin
@ -41,7 +41,7 @@ module t (
end
else if (cyc == 3) begin
`checkh(s_array[1].x, 0);
s_array[1].x <= 1;
s_array[1].x = 1;
`checkh(my_struct.x, 0);
my_struct.x <= 1;
end
@ -55,7 +55,7 @@ module t (
end
else if (cyc == 6) begin
`checkh(s_array[1].x, 0);
s_array[1].x <= 1;
s_array[1].x = 1;
`checkh(my_struct.x, 0);
my_struct.x <= 1;
end