• 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. Custom IC Design
  3. drawing/logo in a schematic view

Stats

  • Locked Locked
  • Replies 9
  • Subscribers 127
  • Views 8571
  • 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

drawing/logo in a schematic view

Aldo2
Aldo2 over 13 years ago

Hello,

is there a way to import/generate a drawing/logo in a schematic view?

Thank you

Aldo 

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 8 years ago

    For the benefit of anyone else who hits a similar issue, here's what I found after Thorsten sent me the xpm file:

    The reason is that your image has too many colours in it. At the top of the code, it says (in the limitations section):

    1. This only handles up to something like 62 layers
       properly. This is because the pixmap format changes to use
       more than one character per pixel, and the code rather
       dumbly assumes that there will only ever be one. To
       be fair, setting up all the layer purpose pairs would
       be a nightmare.

    Your image has 256 colours. Because of this each pixel is represented by two characters, whereas my code dumbly assumes one character per pixel. So that means that each pixel is something like "UX" and it then draws two pixels for each actual pixel. Hence the problem.

    What I did was to use gimp on the xpm file and then use Image->Mode->Indexed and set the maximum number of colours to 2 (under Generate Optimised palette - probably could have used the black and white mode too because you only really seemed to have 2 colours in the image), and saved the xpm file again (attached).

    This then works fine.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 8 years ago

    For the benefit of anyone else who hits a similar issue, here's what I found after Thorsten sent me the xpm file:

    The reason is that your image has too many colours in it. At the top of the code, it says (in the limitations section):

    1. This only handles up to something like 62 layers
       properly. This is because the pixmap format changes to use
       more than one character per pixel, and the code rather
       dumbly assumes that there will only ever be one. To
       be fair, setting up all the layer purpose pairs would
       be a nightmare.

    Your image has 256 colours. Because of this each pixel is represented by two characters, whereas my code dumbly assumes one character per pixel. So that means that each pixel is something like "UX" and it then draws two pixels for each actual pixel. Hence the problem.

    What I did was to use gimp on the xpm file and then use Image->Mode->Indexed and set the maximum number of colours to 2 (under Generate Optimised palette - probably could have used the black and white mode too because you only really seemed to have 2 colours in the image), and saved the xpm file again (attached).

    This then works fine.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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