• 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
  • serricat
    serricat over 12 years ago

     HI Andrew,

     I am trying to do the same thing and I have been able to convert the hex file to binary format but I am unsure of how to generate the hex file so that it creates a bmp.  Do you have any idea of how to format the hex file for bmp format?

    Thanks,

    Heather

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • serricat
    serricat over 12 years ago

     HI Andrew,

     I am trying to do the same thing and I have been able to convert the hex file to binary format but I am unsure of how to generate the hex file so that it creates a bmp.  Do you have any idea of how to format the hex file for bmp format?

    Thanks,

    Heather

    • 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