In reply to Yasmine4:
do you have any idea how verilog programmers deal with this problem.?
They move to SystemVerilog. It’s been widely available for over a decade now in ASIC development. All of the major FPGA development tools have broad synthesis support of user defined type between 5-10 years. Why not move up from Verilog?
Dave