Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
VAMS-LRM-2-3-1.pdf
Скачиваний:
43
Добавлен:
05.06.2015
Размер:
3.73 Mб
Скачать

 

Accellera

Analog and Mixed-signal Extensions to Verilog HDL

Version 2.3.1, June 1, 2009

7.8.3 connect_mode parameter

This parameter can be used in the connect statement to direct the segmentation of the signal at each level of the hierarchy, which can occur while inserting a connect module. It can be one of two predefined values, split or merged. The default is merged.

The connect_mode indicates how input, output, or inout ports of the given discipline shall be combined for the purpose of inserting connect modules. It is applied when there is more than one port of discrete discipline on a net of a signal where the connect statement applies.

7.8.3.1 merged

This instructs the simulator to try to group all ports (whether they are input, output, or inout) and to use just one connector module, provided the module is the same.

Figure 7-9 illustrates the effect of the merged attribute.

Connection of the electrical signal to the ttl inout ports and ttl input ports results in a single connector module, bidir, being inserted between the ports and the electrical signal. The ttl output ports are merged, but with a different connect module; i.e., there is one connector module inserted between the electrical signal and all of the ttl output ports.

171

Copyright © 2009 Accellera Organization, Inc. All rights reserved.

Accellera

 

Version 2.3.1, June 1, 2009

VERILOG-AMS

Figure 7-8:

TTL

bidir

electrical

inputs

outputs d2a

inouts

TTL

inputs

outputs

inouts

connectrules example;

connect d2a merged input ttl, output electrical ; connect bidir merged output electrical, input ttl ; connect bidir merged inout ttl, inout electrical ;

endconnectrules

Figure 7-9: Connector insertion using merged

7.8.3.2 split

If more than one input port is connected at a net of a signal, using split forces there to be one connect module for each port which converts between the net discipline and the port discipline. In this way, the net connecting to the ports is segmented by the insertion of one connect module for each port.

Example 1:

connect elect_to_logic split;

This connect statement specifies the module elect_to_logic shall be split across the discrete module ports:

if an input port has ddiscrete discipline and the signal connecting to the port has electrical discipline, or

Copyright © 2009 Accellera Organization, Inc.

172

 

Accellera

Analog and Mixed-signal Extensions to Verilog HDL

Version 2.3.1, June 1, 2009

if an output port has electrical discipline and the signal connecting to the port has ddiscrete discipline.

Example 2:

In Figure 7-10, the connections of an electrical signal to ttl output ports results in a distinct instance of the d2a connect module being inserted for each output port. This is mandated by the split parameter.

Connection of the electrical signal to ttl input ports results in a single instance of the a2d connect module being inserted between the electrical signal and all the ttl input ports. This is mandated by merged parameter. This behavior is also seen for the ttl inout ports where the merged parameter is used.

TTL

a2d electrical

inputs

d2a

outputs

d2a

inouts

TTL

inputs

d2a

outputs

d2a

inouts

bidir

connectrules example;

connect d2a split input ttl, output electrical; connect a2d merged output electrical, input ttl ; connect bidir merged inout electrical, inout ttl ;

endconnectrules

Figure 7-10: Connect module insertion with signal segmentation

173

Copyright © 2009 Accellera Organization, Inc. All rights reserved.

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]