In reply to Rahulvala:
That, which i already tried, gives a syntax, error.
QuestaSim-64 vlog 2021.3 Compiler 2021.07 Jul 13 2021
Start time: 07:36:38 on Nov 29,2023
vlog -writetoplevels questa.tops -timescale 1ns/1ns design.sv testbench.sv
-- Compiling interface mem_interface
** Error: (vlog-13069) testbench.sv(12): near "=": syntax error, unexpected '=', expecting ')' or ','.
End time: 07:36:38 on Nov 29,2023, Elapsed time: 0:00:00
Errors: 1, Warnings: 0
Exit code expected: 0, received: 2