Home > Community > Forums > Functional Verification > Simvision: Colored an hexadecimal signal according to its value

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Simvision: Colored an hexadecimal signal according to its value 

Last post Wed, Oct 14 2009 8:07 AM by Yaira. 2 replies.
Started by Yaira 14 Oct 2009 06:42 AM. Topic has 2 replies and 2325 views
Page 1 of 1 (3 items)
Sort Posts:
  • Wed, Oct 14 2009 6:42 AM

    • Yaira
    • Not Ranked
    • Joined on Sun, Sep 13 2009
    • Posts 2
    • Points 25
    Simvision: Colored an hexadecimal signal according to its value Reply

    I would like to colored signals background according to their values. In this way I can visually monitor many signals in a long simulation and trace for similar values (i.e. visually seek for all “blue shades” values).

    I tried the following code but get an error:

    mmap new -reuse -name pixel_color -contents {

    {%x=?????? -bgcolor  %x[23:0] -font -*-courier-medium-r-normal--14-* -shape low}}

    Does anyone have an idea?

    Thanks.

    Filed under:
    • Post Points: 20
  • Wed, Oct 14 2009 7:15 AM

    • muffi
    • Top 500 Contributor
    • Joined on Tue, Aug 4 2009
    • Bangalore, Karnataka
    • Posts 20
    • Points 295
    Re: Simvision: Colored an hexadecimal signal according to its value Reply

    Please use the following steps to create Mnemonic Map. You can do this in the SimVision gui like this:

    Select signal 'xyz' and goto ---> Format ---> Radix/Mnemonic ----> Boolean as logic.

    Now, an icon gets created with signal 'xyz' (a mnemonic map icon).

    Click on this icon, "Property - Simvision" window will pop up.

    On the top left , click on first icon to create new Mnemonic Map. It shows a table with three columns. You can also rename the map name if you do not want to use the default name.

    Click on first column to define the format (select hex in your case). After that give a hex value to it.

    Go to next column to name that portion.

    Click on third column. Go to line and select color for that line/portion and you can also color whole portion by clicking on Fill .

    Go to line and select color for that line/portion and you can also color whole portion by clicking on Fill.

    Click on "Apply to Selected Signal"

    I hope this helps.

    Thanks and regards,
    Mufaddal

    • Post Points: 20
  • Wed, Oct 14 2009 8:07 AM

    • Yaira
    • Not Ranked
    • Joined on Sun, Sep 13 2009
    • Posts 2
    • Points 25
    Re: Simvision: Colored an hexadecimal signal according to its value Reply

    Thank you for the reply.

    I afraid I didn’t explain myself correctly.

    I would like the color is automatically selected according to the signal value.

    For example

     

                           |-------------------|--------------------|--------------------|--------------------|

    Sig_pix[23:0]    | A00000       | 0000F7        | FFF4F1        | A40D39        |

                           |-------------------|--------------------|--------------------|--------------------|

    The background of the first value is automatically colored in ligth red (R:A0; G:00; B:00)

    The background of the second value is automatically colored in dark blue (R:00; G:00; B:F7)

    The background of the third value is automatically colored in white (almost pure white )  (R:FF; G:F4; B:F1)

    etc.

     

    Thanks.

     
    Filed under:
    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by Yaira at 14 Oct 2009 06:42 AM. Topic has 2 replies.