edalize icon indicating copy to clipboard operation
edalize copied to clipboard

vopt_options missing in modelsim.py

Open oholimoli opened this issue 2 years ago • 4 comments

Hi, I have question if there is a reason why there are no vopt_options for Modelsim available? => https://github.com/olofk/edalize/blob/master/edalize/modelsim.py#L78

Would if be straight forward to add vopt_options hasn't this option been added for a specific reason?

oholimoli avatar Apr 22 '22 07:04 oholimoli

vopt is not called by edalize, as far as I see it -- therefore no options are needed. Or do you see calls to vopt that I missed (entirely possible!)?

imphil avatar Apr 24 '22 12:04 imphil

Would it be possible or make sense at all to call vopt with edalize (in case there are vopt options)? What would be the required steps to add the vopt part to edalize? Sorry I'm not a Modelsim expert. I'm trying to write a core file for fusesoc for an existing design where vopt is used and would like to add all vopt options the same way to the core as it is done with vsim/vcom/vlog.

oholimoli avatar Apr 25 '22 09:04 oholimoli

The Edalize modelsim flow uses the two step flow and not the three step. You need to pass the vopt options you want in vsim_options.

The usual vsim command line would be something like: vsim <vsim_options> -voptargs=<vopt_options>. Take a look in the manual and search for voptargs.

shareefj avatar May 05 '22 20:05 shareefj

IIRC this is because the free modelsim version at the point when this backend was written didn't even ship vopt so builds would error out if vopt was called. Perhaps the situation is better now, but if voptargs that @shareefj suggested works, then I suggest going with that

olofk avatar May 31 '22 21:05 olofk