• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Logic Design
  3. Synthesizing 'x'

Stats

  • Locked Locked
  • Replies 0
  • Subscribers 63
  • Views 5421
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Synthesizing 'x'

Tzachi Noy
Tzachi Noy over 14 years ago

Hi,

look at the following code:

always @(*)

   begin

      o = 2'bxx;

      if (a) o = 2'd0;

      else if (b) o = 2'd1;

      else if (c) o = 2'd2;

      else if (d) o = 2'd3;

   end

 

signal o is DC (don't care) if none of the inputs (a,b,c,d) is asserted. I used the 2'bxx value because (1) it's easier to debug when X is propagating and (2) don't care might help the synthesizer, because it can assign any value it wants in this case.

 

But using HAL, I get an error *SYNTXZ - which warns me about this X assignment.

My question is: Doesn't X assignment 'help' the synthesizer?

If it is - why is the warning? or how can I avoid this warning?

if not - is there a way to tell the synthesizer about Don't-Cares in a combinational logic?

  • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information