Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: \Ctl-c \Ctl t D for signal reg define is not pretty. #665

Closed
veripoolbot opened this issue Jul 16, 2013 · 0 comments
Closed

Question: \Ctl-c \Ctl t D for signal reg define is not pretty. #665

veripoolbot opened this issue Jul 16, 2013 · 0 comments
Labels

Comments

@veripoolbot
Copy link
Collaborator


Author Name: Wkong Zhu
Original Redmine Message: 1199 from https://www.veripool.org


I use verilog-mode the most updated version. 05-26.
When use \Ctl-c \Ctl t D,it really works, but the code generated is not as pretty as it should be.

module tst (/*AUTOARG*/
  // Outputs
  c,
  // Inputs
  a, b
  ) ;
  input  [1:0] a, b;
  output [1:0] c;

  /*AUTOREG*/
  /*AUTOWIRE*/

  assign d = ~a;
  assign c = a & d;
  
endmodule // tst


when I put cursor at d, and type \ctl-c \ctl-t D, it looks like below:

module tst (/*AUTOARG*/
  // Outputs
  c,
  // Inputs
  a, b
  ) ;
  reg [1:0

  ] 	       
	       d;

  input [1:0]  a, b;
  output [1:0] c;

  /*AUTOREG*/
  /*AUTOWIRE*/

  assign d = ~a;
  assign c = a & d;
  
endmodule // tst


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant