File size: 500 Bytes
f61bac1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
module top (foo,
    \foo[3] ,
    out_bus,
    out_scalar);
 input [7:0] foo;
 input \foo[3] ;
 output out_bus;
 output out_scalar;

 child u_child (.foo(foo),
    .\foo[3] (\foo[3] ),
    .out_bus(out_bus),
    .out_scalar(out_scalar));
endmodule

module child (foo,
    \foo[3] ,
    out_bus,
    out_scalar);
 input [7:0] foo;
 input \foo[3] ;
 output out_bus;
 output out_scalar;

 BUF_X1 bus_load (.A(foo[3]),
    .Z(out_bus));
 BUF_X1 scalar_load (.A(\foo[3] ),
    .Z(out_scalar));
endmodule