How do you instruct the simulator not to generate X values?

Description

I would like the simulator to ignore the setup and/or hold violation for particular (or all) flip flops (cascaded in order to handle metastability). Instead of generating X values, I would like the simulator to generate a 1 or 0. Can I do that?

Solution

In Active-HDL you can disable X values by passing -g XOn=false in the asim command.

It should look like:

C<asim -g XOn=false top_level_name> 

For more information about asim and detailed description of switches, type help asim in Active-HDL's console window.

Ask Us a Question
x

Ask Us a Question

x
Captcha ImageReload Captcha
Incorrect data entered.
Thank you! Your question has been submitted. Please allow 1-3 business days for someone to respond to your question.
Internal error occurred. Your question was not submitted. Please contact us using Feedback form.