veripool / verilog-mode

Verilog-Mode for Emacs with Indentation, Hightlighting and AUTOs. Master repository for pushing to GNU, verilog.com and veripool.org.
http://veripool.org/verilog-mode
GNU General Public License v3.0
261 stars 90 forks source link

Question: C-c = / verilog-pretty-expr work for assigns? #1256

Closed veripoolbot closed 6 years ago

veripoolbot commented 6 years ago

Author Name: David Rogoff Original Redmine Message: 2453 from https://www.veripool.org


Hi.

Would it be easy to make verilog-pretty-expr work for assign statements?

e.g.

assign a = 5; assign long_name = a; assign sig_b = a + 5;

Thanks,

David

veripoolbot commented 6 years ago

Original Redmine Comment Author Name: Wilson Snyder (@wsnyder) Original Date: 2018-01-01T22:09:24Z


If someone wants to take it on that would be great. Otherwise it's unlikely especially as there's already some bug backlog with the existing pretty functions.

veripoolbot commented 6 years ago

Original Redmine Comment Author Name: David Rogoff Original Date: 2018-01-01T22:21:46Z


Sure - I understand. I'm not very good at e-lisp but I'll take a look at verilog-pretty-expr and see if I can hack it :)

veripoolbot commented 6 years ago

Original Redmine Comment Author Name: Don Pearce Original Date: 2018-02-03T00:32:26Z


Another nice to have would be to align end of line comments in module header.

module foo
(
  input   rst_n, // My Reset
  input   clk, // My Clock
  input   d, // My D-input

  output  q, // My Q-Output
);

The port name already aligns properly ... but it would sure be nice to have it auto-beautify to:

module foo
(
  input   rst_n, // My Reset
  input   clk,   // My Clock
  input   d,     // My D-input

  output  q,     // My Q-Output
);