• 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 SKILL
  3. How to create a BMP file using SKILL and Virtuoso ?

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 145
  • Views 17321
  • 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

How to create a BMP file using SKILL and Virtuoso ?

BruceD
BruceD over 13 years ago

Hello All

This is my first topic here :) And i need your help for doing something a little bit tricky (to me!)

I have a layout with let's say 2 layers. (to keep things simple.) overlapping a bunch of instances.

Everytime layer1 or Layer2 is overlapping a part of the matrix , i calculate the percentage of covered area.

I assume that if there is no overlap, my value is 255.

If i have let's say 3%of coverage,  then my value will be(100%-3%)*255 = 247.

Foreach instance in ly layout, i calculate the corresponding value of coverage. So my values can be from 0 to 255, if i have full coverage or not..

I would like to create a BMP file (not XPM, not  XBM because i need the sequence RGB )  with those calculated values (0 to 255).

But BMP is a binary format, so i need to convet the decimal values to ASCII chars and put that in a file.

The command IntToChar works almost -- not for every decimal value (00 for example) and even if i can get a result with intToChar, i can not print it in a file using fprintf command :( 

If someone can think about a smart way to create a BMP using Virtuoso (IPC ok, using another language) could you please help me with that? i'm unfortunately not "fluent" in perl or tcl. Any help is welcome!

Thanks a lot guys for your help.

Best,

Bruce

 

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

    Heather,

    I've not written anything to generate BMP files but the key would be understanding the format itself. A search in google reveals quite a few places with info including http://en.m.wikipedia.org/wiki/BMP_file_format

    Good luck!

    To be honest, if it was me, I'd use a language with a richer set of libraries for image generation (such as python) and then generate the info about the pixels in want from SKILL in some convenient form and use the image processing libraries under python to do the heavy lifting. That will make life considerably easier.  

    Regards,

    Andrew 

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

    Heather,

    I've not written anything to generate BMP files but the key would be understanding the format itself. A search in google reveals quite a few places with info including http://en.m.wikipedia.org/wiki/BMP_file_format

    Good luck!

    To be honest, if it was me, I'd use a language with a richer set of libraries for image generation (such as python) and then generate the info about the pixels in want from SKILL in some convenient form and use the image processing libraries under python to do the heavy lifting. That will make life considerably easier.  

    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