Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Emacs verilog mode: AUTOINOUT challenge

Status
Not open for further replies.

viv_1005

Junior Member level 3
Joined
Feb 3, 2005
Messages
29
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,281
Activity points
232
emacs autoreg

Hello!
I have following challenge.

module x(/*AUTOARG*/);

/*AUTOINOUT*/
/*AUTOWIRE*/
/*AUTOREG*/

wire [32:0] a;
assign a = b0? a0: b1?a1 : b2?a2;

my_module u0_my_module(/*AUTOINST*/
.a(a0),
.b(b0));

my_module u1_my_module(/*AUTOINST*/
.a(a1),
.b(b1));

my_module u2_my_module(/*AUTOINST*/
.a(a2),
.b(b2));

endmodule

After writing this, if I do a ctrl-C ctrl-A, I get b0, b1, b2 in the IO list. whereas I want only a in the IOs. Can you suggest me where am I going wrong
 

emacs verilog-mode autoinst

you can't use AUTOINOUT in such case.
I recommend use AUTOARG AUTOINST AS.
Don't use others to prohibit errors.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top