[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

Indentation goes haywire when using xor (^)

Added by Kaustabh Duorah 6 months ago

Whenever I use ^ in my code, the indentation after that goes haywire. I have to make sure that any code is at the end of my file to avoid this.

class abcd extends edfg;

   int a;

   function new();

     super.new();

   endfunction // new

   function bit [3:0] crc(int b);
      bit [3:0[ crc;
      crc = a ^ b;
                return crc;
                endfunction // crc

                endclass // abcd

abcd.sv (314 Bytes)


Replies (1)

RE: Indentation goes haywire when using xor (^) - Added by Brian Cassell about 1 month ago

In your code
bit [3:0[ crc;
should really be
bit [3:0] crc;

then it will line up correctly.

(1-1/1)