stanford
Full Member level 2
I heard using 'casez' synthesizes into smaller hardware and casex could mask signals that are not initialized properly. Is this why casez is preferred over others?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
x and z values as logic input only occur in simulation, never in hardware. Respectively the usage of casex and casez is a question of appropriate hardware simulation and if used in RTL code, of avoiding simulation mismatch.
casez also provides a compact and descriptive way to specify don't care bits in RTL code.
Because the Don't Care syntax is easier to read showing your intent rather than listing all the matching conditions, and less prone for mistakes. This is independent of simulation or synthesisMy question is why would you want to use don't care over matching the conditions exactly, if this is just for simulation? Brute force matching (case) seems safer for validation.
My question is why would you want to use don't care over matching the conditions exactly, if this is just for simulation? Brute force matching (case) seems safer for validation.