File: autoinst_multitemplate.v

package info (click to toggle)
verilog-mode 20161124.fd230e6-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 3,764 kB
  • ctags: 5,143
  • sloc: lisp: 12,430; perl: 293; makefile: 146; sh: 35; fortran: 2
file content (51 lines) | stat: -rw-r--r-- 1,317 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// This file ONLY is placed into the Public Domain, for any use,
// without warranty, 2011 by Wilson Snyder.

// Reported by Julian Gorfajn <jig1@cornell.edu>

module autoinst_multitemplate ();
   
   /*AUTOINPUT*/
   // Beginning of automatic inputs (from unused autoinst inputs)
   input      Boo1; // To suba1 of SubA.v
   input      Boo2; // To suba2 of SubB.v
   input      Boo3; // To suba3 of SubC.v
   input      b; // To suba2 of SubB.v
   input      c; // To suba3 of SubC.v
   // End of automatics
   
   /*AUTOOUTPUT*/
   
   /*AUTOWIRE*/
   
   wire [3:0] f4_dotnamed;
   
   /*
    SubA AUTO_TEMPLATE
    SubB AUTO_TEMPLATE
    SubC AUTO_TEMPLATE (
    .a (Boo@),
    );*/
   
   SubA suba1 (/*AUTOINST*/
               // Inputs
               .a                       (Boo1));                         // Templated
   SubB suba2 (/*AUTOINST*/
               // Inputs
               .a                       (Boo2),                  // Templated
               .b                       (b));
   SubC suba3 (/*AUTOINST*/
               // Inputs
               .a                       (Boo3),                  // Templated
               .c                       (c));
   
endmodule

module SubA (input a);
endmodule

module SubB (input a,input b);
endmodule

module SubC (input a,input c );
endmodule