[logo] 
 
Home
News
Activity
About/Contact
Major Tools
  Dinotrace
  Verilator
  Verilog-mode
  Verilog-Perl
Other Tools
  BugVise
  CovVise
  Force-Gate-Sim
  Gspice
  IPC::Locker
  Rsvn
  Schedule::Load
  SVN::S4
  Synopsys-modes
  SystemPerl
  Verilog-Pli
  Voneline
  Vregs
General Info
  Papers

Using UPCASE with "substring vl-cell-name"

Added by Sandip Das 7 months ago

In this example below, i want to convert the instance name ( which is a mix of uppercase and lowercase ) to all UPPERCASE in the signal name. how do i use upcase in conjunction with "substring vl-cell-name 2" ?

/* InstModule AUTO_TEMPLATE (
     .a(@"(substring vl-cell-name 2)"_in[]),
     .b(@"(substring vl-cell-name 2)"_out[])
     );*/

InstModule u_UnitA (/*AUTOINST*/
   // Inouts
   .a    (UNITA_in[bitsa:0]),     // Templated
   .b    (UNITA_out[bitsb:0]));     // Templated

Replies (1)

RE: Using UPCASE with "substring vl-cell-name" - Added by Wilson Snyder 7 months ago

@"(upcase (substring vl-cell-name 2))"

(1-1/1)