Skip to content

Question: verilog-auto-wire-type set to "wire" still results in logic type? #1402

@veripoolbot

Description

@veripoolbot

Author Name: Mark Thompson
Original Redmine Message: 2883 from https://www.veripool.org


I am trying to auto-connect using wires. According to the wiki

verilog-auto-wire (function)
Expand AUTOWIRE statements, as part of M-x verilog-auto. Make wire statements for instantiations outputs that aren't already declared. verilog-auto-wire-type may be used to change the datatype of the declarations.

When I run autos I expect to see a wire type created but instead I get "logic" type

/*AUTOWIRE*/
// Beginning of automatic wires (for undeclared instantiated-module outputs)
logic                   outA;                   // From instA of dly.v, ...
// End of automatics

Here is my test module before expansion with autos:


module test (
input  clk,
input  siga,
input  sigb,            
output sigc
);

/*AUTOWIRE*/

  /* dly AUTO_TEMPLATE (
  .input (siga),
  ); */
  dly instA (
  /*AUTOINST*/);

  /* dly AUTO_TEMPLATE (
  .input (outA),
  ); */
 
dly instB (
/*AUTOINST*/);
endmodule // test

module dly (
input clk,
input inA,
output outA
);
  always @(posedge clk) begin
  outA <= inA;
end
endmodule // dly

// Local Variables:
// verilog-auto-wire-type:"logic"
// End:


Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions