I have a GLS simulation, which makes use of a netlist.
One of the modules makes use of an intra-assignment delay which is defined in a define. When the same code is run in RTL environment there is no compilation error, but for a GLS run there is a syntax error for the data_sync_int <= **#seq_unit_delay** data;
I replaced the seq_unit_delay with a number(1, in this case, or any other number if define is removed) then it compiled successfully.
Is it bad coding technique to use `define in the intra-assignment delay in GLS simulation?
The exact error message is
Error-[SE] Syntax error
Following verilog source has syntax error :
“/nfs/site/stod/ZZC_20.2/tcp-zzc/containers/trcc_con/subIP/TRCC/trc_tech/trc_tech.vh”,
146: token is ‘;’
data_sync_int <= #`seq_unit_delay data;