Home Articles Verification
Main Menu
Home
System Verilog
Verilog
Methodologies
Open Vera
Digital Concepts
Verification Basics
Protocols
Scripting
Articles
    - Design
    - Verification
        -- Pass Fail Messages in TestBench with Color !
        -- Do not rely on illegal_bins
        -- Coverage Model in SystemVerilog TestBench
        -- Sr Design Engineer
        -- north face soft shell jackets,womens north face jackets
        -- Cheap Louboutin Pumps
        -- quinceanera dresses,quinceanera gowns,best quinceanera dress
        -- Christian louboutin Pumps NIB Black CL02067 [CL02067] - $139.00
        -- Tiffany Outlet Necklaces Two Tone Feather Link [2023] - $59.00 :
        -- belstaff jackets
        -- Mens Nike Air Max 95 Shoes Red Grey [nike276] - $66.99 :
        -- All Products : LV sale,cheap LV handbags,Louis Vuitton online,Replica Louis Vuitton Handbags,Louis V
        -- All Products :
        -- Links Of London Bookworm Charm [1075] - $31.93 :
        -- cheap Pandora Earrings
        -- Armani Fashion Watches :
        -- Tory Burch patent leather fastener flat brown [20110333] - $179.98
        -- discount tiffany jewelry
        -- rolex daytona online
        -- Monster Beats By Dre Graffiti Limited Edition Headphones Red [monster043] - $179.90 :
        -- Christian Louboutin Nitoinimoi Bandage Ankle Boots CL01051 [CL01051] - $167.00 :
        -- discount Swarovski Beads
        -- Detroit Pistons jerseys,NBA ALL STAR jerseys,buy Detroit Pistons jerseys,wholesale Detroit Pistons j
        -- ARTIX :
        -- Pandora sets 121 [pandora1235] - $68.62 :
        -- tiffany necklaces,tiffany necklaces online,tiffany necklaces sale,cheap tiffany necklaces,discount t
        -- Replica Jaquet Droz Complication La Chaux-de-Fonds - Chrono Monopoussoir J007634201 watch [J00763420
        -- Tiffany Necklaces Jewelry Silver Lozenges Chaining Necklace [TiffanyNecklaces_654] - $45.03 :
        -- tiffany jewelry online
        -- A-line Wedding Dresses, A-line bridal gowns, A-line wedding gowns, cheap A-line Wedding Dresses, A-l
        -- Replica Ebel Brasilia watches,fake Ebel Brasilia watches,cheap Ebel Brasilia watches,Ebel Brasilia w
        -- Christian Louboutin Discount
        -- purchase designer handbags
        -- Replica NEW GUCCI 112 THE TWIRL WOMEN YA112422 WATCH [YA112422] - $210.00 :
        -- Womens Nike Air Max 90 Shoes White Red Blue Green Yellow [nike1406] - $65.99 :
        -- Gucci Rings,cheap Gucci Rings,buy Gucci Rings,discount Gucci Rings,Gucci Rings online,Gucci Rings ou
        -- Shipping & Returns : Moonwigs.com, cheap wigs,discount wig,lace wigs wholesale
        -- buy A. Lange & Sohne Watches
        -- NFL Jerseys,cheap NFL Jerseys,Cheap NFL Jersey,Throwback NFL Jerseys,authentic NFL jerseys,football
        -- Christian Louboutin Josefa 120 Platform Sandals - $149.99 : Christian Louboutin Online, Christian Lo
        -- new dresses
        -- Swarovski Charms,Swarovski Charms sale,Swarovski Charms online,Swarovski Charms outlet,wholesale Swa
        -- Alexander McQueen Sandals
        -- Tiffany Sterling Silver Gatelink Rings [4063] - $79.00 :
        -- Tiffany Bangles Open Small In Silver - $53.56 : tiffanycompany.org, Tiffay Outlet,Tiffany On Sale,Ti
        -- Replica 101G ROUND MENS Watch YA101340 [YA101340] - $183.00 :
        -- Tiffany Jewelry Bangles Silver Sting Inlaid Silver Bead [TiffanyBracelets_283] - $46.12 :
        -- Tiffany Charms Jewelry D Shaped Lock Silver Charm [TiffanyCharms980008] - $35.01 :
        -- designer handbags outlet
        -- Pure Silver Double-beads Bent Champagne Swarovski Bracelets [zi492198] - $69.98 :
        -- bob blond custom wigs - $216.00 : Moonwigs.com, cheap wigs,discount wig,lace wigs wholesale
        -- Youth AC Milan 10/11 Home Red Replica Soccer Jerseys and Shorts #16 FLAMINI [SoccerJerseys7867] - $2
        -- Moncler men cowskin high Casual shoes coffee [100026] - $239.99 :
        -- nike tailwind 2010
        -- Links Of London Friendship Bracelet Green Pink Double Wrap [1194] - $54.38 :
        -- Pandora 2 Double Charms Bracelet [pandora032] - $75.99 :
        -- Replica NEW LONGINES LUNGOMARE L3.132.4.58.6 LADIES MINI WATCH [L3.132.4.58.6] - $180.00 :
        -- Tiffany & Co Fish drop Set [tiffany1259] - £86.90 :
        -- JUICY COUTURE CHARM BRACELET JCM0154-GG [JCM0154-GG] - $38.96 :
        -- fake Tissot Sport watches
        -- UGG Classic Cardy
        -- Filmy cutter Roll forming machine - Hangzhou Roll Forming Machinery Co.,Ltd.
        -- Manolo Blahnik Suede & Snake Pumps [shoe18192] - $129.98
        -- Tiffany Love & Kisses Bangles TPP1010 [tiffany1501] - $51.76 :
        -- gucci replica handbags
        -- North Face Women's Shoes, North Face Shoes
        -- tiffany and co rings,Tiffany Silver Rings,tiffany rings,tiffany rings cheap,tiffany ring
        -- Tiffany Open Heart drop earrings - $42.93 : tiffanycompany.org, Tiffay Outlet,Tiffany On Sale,Tiffan
        -- Specials :
        -- NFL Women Jersey, women jerseys, authentic women football jerseys,wholesale NFL Women Jersey,cheap N
Videos
Interview Questions
Computer Architechture
C and C++
Blog/Article
AsicGuru Blog
Tags Cloud
Ads
Usefull Sites
Know Your IP/Location
Local Information India
Buy Car/Inverter Batteries
Real Estate India
Sports Accessories India
Verfication Articles
Share This Articale:

How many among you know that you can actually display color messages using Verilog and SystemVerilog?

You can implement a logic in your testbench to have nicely colored display messages at the end of your simulation which will give you a PASS/FAIL messages. I have written a piece of code given below and you can refer the same. I have captured a snapshot of output which you can see below.

program clr_display();
  class color ;
    task display ();
      $display("%c[1;34m",27);
      $display("***************************************");
      $display("*********** TEST CASE PASS ************");
      $display("***************************************");
      $write("%c[0m",27);
      
      $display("%c[1;31m",27);
      $display("***************************************");
      $display("*********** TEST CASE FAIL ************");
      $display("***************************************");
      $display("%c[0m",27);
    endtask
  endclass

  initial 
    begin
      color clr;
      clr = new ();
      clr.display ();
  end
endprogram


OUTPUT:




The message to be printed is ("%c[TYPE;COLOURm",27);.

TYPE specifies how the message should be?

1 set bold
2 set half-bright (simulated with color on a color display)
4 set underscore (simulated with color on a color display)
5 set blink
7 set reverse video

COLOR specifies the message color.

30 set black foreground
31 set red foreground
32 set green foreground
33 set brown foreground
34 set blue foreground
35 set magenta foreground
36 set cyan foreground
37 set white foreground


With an above example you can have a display messages with colors. So this way you can have nicely and colored messages on your terminal.

Enjoy...!

-ASIC With Ankit (www.asicwithankit.blogspot.com)

Index :

        -- Pass Fail Messages in TestBench with Color ! : Pass Fail Messages in TestBench with Color !
        -- Do not rely on illegal_bins : Do not rely on illegal_bins
        -- Coverage Model in SystemVerilog TestBench : Coverage Model in SystemVerilog TestBench
        -- Sr Design Engineer : Sr Design Engineer
        -- north face soft shell jackets,womens north face jackets : north face soft shell jackets,womens north face jackets
        -- Cheap Louboutin Pumps : Cheap Louboutin Pumps
        -- quinceanera dresses,quinceanera gowns,best quinceanera dress : quinceanera dresses,quinceanera gowns,best quinceanera dress
        -- Christian louboutin Pumps NIB Black CL02067 [CL02067] - $139.00 : Christian louboutin Pumps NIB Black CL02067 [CL02067] - $139.00
        -- Tiffany Outlet Necklaces Two Tone Feather Link [2023] - $59.00 : : Tiffany Outlet Necklaces Two Tone Feather Link [2023] - $59.00 :
        -- belstaff jackets : belstaff jackets
        -- Mens Nike Air Max 95 Shoes Red Grey [nike276] - $66.99 : : Mens Nike Air Max 95 Shoes Red Grey [nike276] - $66.99 :
        -- All Products : LV sale,cheap LV handbags,Louis Vuitton online,Replica Louis Vuitton Handbags,Louis V : All Products : LV sale,cheap LV handbags,Louis Vuitton online,Replica Louis Vuitton Handbags,Louis Vuitton Outlet, Louis Vuitton Sale, Louis Vuitton Sale, LV bags ,Louis Vuitton Outlet,Cheap LV,Buy
        -- All Products : : All Products :
        -- Links Of London Bookworm Charm [1075] - $31.93 : : Links Of London Bookworm Charm [1075] - $31.93 :
        -- cheap Pandora Earrings : cheap Pandora Earrings
        -- Armani Fashion Watches : : Armani Fashion Watches :
        -- Tory Burch patent leather fastener flat brown [20110333] - $179.98 : Tory Burch patent leather fastener flat brown [20110333] - $179.98
        -- discount tiffany jewelry : discount tiffany jewelry
        -- rolex daytona online : rolex daytona online
        -- Monster Beats By Dre Graffiti Limited Edition Headphones Red [monster043] - $179.90 : : Monster Beats By Dre Graffiti Limited Edition Headphones Red [monster043] - $179.90 :
        -- Christian Louboutin Nitoinimoi Bandage Ankle Boots CL01051 [CL01051] - $167.00 : : Christian Louboutin Nitoinimoi Bandage Ankle Boots CL01051 [CL01051] - $167.00 :
        -- discount Swarovski Beads : discount Swarovski Beads
        -- Detroit Pistons jerseys,NBA ALL STAR jerseys,buy Detroit Pistons jerseys,wholesale Detroit Pistons j : Detroit Pistons jerseys,NBA ALL STAR jerseys,buy Detroit Pistons jerseys,wholesale Detroit Pistons jerseys,cheap Detroit Pistons jerseys
        -- ARTIX : : ARTIX :
        -- Pandora sets 121 [pandora1235] - $68.62 : : Pandora sets 121 [pandora1235] - $68.62 :
        -- tiffany necklaces,tiffany necklaces online,tiffany necklaces sale,cheap tiffany necklaces,discount t : tiffany necklaces,tiffany necklaces online,tiffany necklaces sale,cheap tiffany necklaces,discount tiffany necklaces
        -- Replica Jaquet Droz Complication La Chaux-de-Fonds - Chrono Monopoussoir J007634201 watch [J00763420 : Replica Jaquet Droz Complication La Chaux-de-Fonds - Chrono Monopoussoir J007634201 watch [J007634201] - $193.00 :
        -- Tiffany Necklaces Jewelry Silver Lozenges Chaining Necklace [TiffanyNecklaces_654] - $45.03 : : Tiffany Necklaces Jewelry Silver Lozenges Chaining Necklace [TiffanyNecklaces_654] - $45.03 :
        -- tiffany jewelry online : tiffany jewelry online
        -- A-line Wedding Dresses, A-line bridal gowns, A-line wedding gowns, cheap A-line Wedding Dresses, A-l : A-line Wedding Dresses, A-line bridal gowns, A-line wedding gowns, cheap A-line Wedding Dresses, A-line Wedding Dresses for sale
        -- Replica Ebel Brasilia watches,fake Ebel Brasilia watches,cheap Ebel Brasilia watches,Ebel Brasilia w : Replica Ebel Brasilia watches,fake Ebel Brasilia watches,cheap Ebel Brasilia watches,Ebel Brasilia watches
        -- Christian Louboutin Discount : Christian Louboutin Discount
        -- purchase designer handbags : purchase designer handbags
        -- Replica NEW GUCCI 112 THE TWIRL WOMEN YA112422 WATCH [YA112422] - $210.00 : : Replica NEW GUCCI 112 THE TWIRL WOMEN YA112422 WATCH [YA112422] - $210.00 :
        -- Womens Nike Air Max 90 Shoes White Red Blue Green Yellow [nike1406] - $65.99 : : Womens Nike Air Max 90 Shoes White Red Blue Green Yellow [nike1406] - $65.99 :
        -- Gucci Rings,cheap Gucci Rings,buy Gucci Rings,discount Gucci Rings,Gucci Rings online,Gucci Rings ou : Gucci Rings,cheap Gucci Rings,buy Gucci Rings,discount Gucci Rings,Gucci Rings online,Gucci Rings outlet
        -- Shipping & Returns : Moonwigs.com, cheap wigs,discount wig,lace wigs wholesale : Shipping & Returns : Moonwigs.com, cheap wigs,discount wig,lace wigs wholesale
        -- buy A. Lange & Sohne Watches : buy A. Lange & Sohne Watches
        -- NFL Jerseys,cheap NFL Jerseys,Cheap NFL Jersey,Throwback NFL Jerseys,authentic NFL jerseys,football : NFL Jerseys,cheap NFL Jerseys,Cheap NFL Jersey,Throwback NFL Jerseys,authentic NFL jerseys,football jerseys,wholesale NFL jerseys
        -- Christian Louboutin Josefa 120 Platform Sandals - $149.99 : Christian Louboutin Online, Christian Lo : Christian Louboutin Josefa 120 Platform Sandals - $149.99 : Christian Louboutin Online, Christian Louboutin Heels??Cheap Louboutin Shoes,Discount Christian Louboutin Online,Christian Louboutin Pumps,L
        -- new dresses : new dresses
        -- Swarovski Charms,Swarovski Charms sale,Swarovski Charms online,Swarovski Charms outlet,wholesale Swa : Swarovski Charms,Swarovski Charms sale,Swarovski Charms online,Swarovski Charms outlet,wholesale Swarovski Charms
        -- Alexander McQueen Sandals : Alexander McQueen Sandals
        -- Tiffany Sterling Silver Gatelink Rings [4063] - $79.00 : : Tiffany Sterling Silver Gatelink Rings [4063] - $79.00 :
        -- Tiffany Bangles Open Small In Silver - $53.56 : tiffanycompany.org, Tiffay Outlet,Tiffany On Sale,Ti : Tiffany Bangles Open Small In Silver - $53.56 : tiffanycompany.org, Tiffay Outlet,Tiffany On Sale,Tiffany Co Outlet,Tiffany And Co Outlet
        -- Replica 101G ROUND MENS Watch YA101340 [YA101340] - $183.00 : : Replica 101G ROUND MENS Watch YA101340 [YA101340] - $183.00 :
        -- Tiffany Jewelry Bangles Silver Sting Inlaid Silver Bead [TiffanyBracelets_283] - $46.12 : : Tiffany Jewelry Bangles Silver Sting Inlaid Silver Bead [TiffanyBracelets_283] - $46.12 :
        -- Tiffany Charms Jewelry D Shaped Lock Silver Charm [TiffanyCharms980008] - $35.01 : : Tiffany Charms Jewelry D Shaped Lock Silver Charm [TiffanyCharms980008] - $35.01 :
        -- designer handbags outlet : designer handbags outlet
        -- Pure Silver Double-beads Bent Champagne Swarovski Bracelets [zi492198] - $69.98 : : Pure Silver Double-beads Bent Champagne Swarovski Bracelets [zi492198] - $69.98 :
        -- bob blond custom wigs - $216.00 : Moonwigs.com, cheap wigs,discount wig,lace wigs wholesale : bob blond custom wigs - $216.00 : Moonwigs.com, cheap wigs,discount wig,lace wigs wholesale
        -- Youth AC Milan 10/11 Home Red Replica Soccer Jerseys and Shorts #16 FLAMINI [SoccerJerseys7867] - $2 : Youth AC Milan 10/11 Home Red Replica Soccer Jerseys and Shorts #16 FLAMINI [SoccerJerseys7867] - $25.96 :
        -- Moncler men cowskin high Casual shoes coffee [100026] - $239.99 : : Moncler men cowskin high Casual shoes coffee [100026] - $239.99 :
        -- nike tailwind 2010 : nike tailwind 2010
        -- Links Of London Friendship Bracelet Green Pink Double Wrap [1194] - $54.38 : : Links Of London Friendship Bracelet Green Pink Double Wrap [1194] - $54.38 :
        -- Pandora 2 Double Charms Bracelet [pandora032] - $75.99 : : Pandora 2 Double Charms Bracelet [pandora032] - $75.99 :
        -- Replica NEW LONGINES LUNGOMARE L3.132.4.58.6 LADIES MINI WATCH [L3.132.4.58.6] - $180.00 : : Replica NEW LONGINES LUNGOMARE L3.132.4.58.6 LADIES MINI WATCH [L3.132.4.58.6] - $180.00 :
        -- Tiffany & Co Fish drop Set [tiffany1259] - £86.90 : : Tiffany & Co Fish drop Set [tiffany1259] - £86.90 :
        -- JUICY COUTURE CHARM BRACELET JCM0154-GG [JCM0154-GG] - $38.96 : : JUICY COUTURE CHARM BRACELET JCM0154-GG [JCM0154-GG] - $38.96 :
        -- fake Tissot Sport watches : fake Tissot Sport watches
        -- UGG Classic Cardy : UGG Classic Cardy
        -- Filmy cutter Roll forming machine - Hangzhou Roll Forming Machinery Co.,Ltd. : Filmy cutter Roll forming machine - Hangzhou Roll Forming Machinery Co.,Ltd.
        -- Manolo Blahnik Suede & Snake Pumps [shoe18192] - $129.98 : Manolo Blahnik Suede & Snake Pumps [shoe18192] - $129.98
        -- Tiffany Love & Kisses Bangles TPP1010 [tiffany1501] - $51.76 : : Tiffany Love & Kisses Bangles TPP1010 [tiffany1501] - $51.76 :
        -- gucci replica handbags : gucci replica handbags
        -- North Face Women's Shoes, North Face Shoes : North Face Women's Shoes, North Face Shoes
        -- tiffany and co rings,Tiffany Silver Rings,tiffany rings,tiffany rings cheap,tiffany ring : tiffany and co rings,Tiffany Silver Rings,tiffany rings,tiffany rings cheap,tiffany ring
        -- Tiffany Open Heart drop earrings - $42.93 : tiffanycompany.org, Tiffay Outlet,Tiffany On Sale,Tiffan : Tiffany Open Heart drop earrings - $42.93 : tiffanycompany.org, Tiffay Outlet,Tiffany On Sale,Tiffany Co Outlet,Tiffany And Co Outlet
        -- Specials : : Specials :
        -- NFL Women Jersey, women jerseys, authentic women football jerseys,wholesale NFL Women Jersey,cheap N : NFL Women Jersey, women jerseys, authentic women football jerseys,wholesale NFL Women Jersey,cheap NFL Women Jersey,cheap women jerseys,wholesale women jerseys

 
Login/Register
Register
Sign In
Login with :-
gmail-yahoo-twitter-facebook
| | |  
  •  
  • Bookmark
    ADS