Main Content

Design Matching Networks for Passive Multiport Network

This example shows how to design matching networks for 16-port passive network at 39 GHz for 5G mmWave systems. Matching networks are designed independently for each port, and each generated matching network is intended to function between two 1-port terminations.

Design Multiport Passive Network

Compute the S-Parameters of a patch antenna array designed at 39 GHz. Load the sparams_patchArray.mat file. The s_params_circ_array function is obtained from the supporting file designmultiport.mlx.

Fcenter = 39e9;
load('sparams_patchArray.mat')
Sparam_array = s_params_circ_array;
show(patchArray)
view([90 0])

Figure contains an axes object. The axes object with title rectangularArray of patchMicrostripCircular antennas contains 66 objects of type patch, surface. These objects represent PEC, feed.

Determine the index corresponding to the center frequency.

freq    = Sparam_array.Frequencies;
fIndex  = find(freq == Fcenter);

Create Matching Networks

Generate matching networks for each corresponding port independently, with a Loaded Q of 20 and configure the topology to 'Pi'. This Q-factor is aligned with half power bandwidth of the patch antenna array, which is approximately 2 GHz.

Define the number of ports in the network and specify the termination impedance.

numport     = s_params_circ_array.NumPorts;
ZT          = 50; 
loadedQ     = 20;
topology    = 'Pi';
for i = 1 : numport
    % reflection coefficient/Sii
    gam_array       = s_params_circ_array.Parameters(i,i,fIndex);
    % Load impedance
    Zout            = gamma2z(gam_array);
    % Matching networks generation
    match_net(i)    = matchingnetwork('SourceImpedance', ZT, ...
        'LoadImpedance', Zout, 'CenterFrequency', Fcenter, ...
        'LoadedQ', loadedQ, 'Components', topology);
end

The source is connected to the component located on left of the matching network circuit and the load is connected to the component connected to the right of the matching network circuit. For the matching networks generated, the source is terminated with ZT (50 Ohm) and the load impedance is the impedance seen at the ith-port given by Zout.

View and Select Circuits

Select a topology from the sixteen matchingnetwork objects. To get an overview of the available circuits, see circuitDescriptions function.

In this example, a Shunt C-Series L-Shunt C topology is used. If this topology is not available in your network, use the best available matching network circuit.

selectedCircuits = repmat(circuit,1,numport);
cIndex           = zeros(1,numport);

View the list of circuits generated.

for i = 1:numel(match_net)
    c = circuitDescriptions(match_net(i));
    % Perform a text search to choose the circuit with Shunt C-Series L-Shunt C topology
    Index = strcmp(c.component1Type,"Shunt C") & ...
        strcmp(c.component2Type,"Series L") & ...
        strcmp(c.component3Type,"Shunt C");
    if any(Index)
        % ShuntC-SeriesL-ShuntC topology
        cIndex(i)   = find(Index, 1, 'first');
        selectedCircuits(i) = match_net(i).Circuit(cIndex(i));
    else
        % Best available matchingnetwork
        selectedCircuits(i) = match_net(i).Circuit(1);
    end
    selectedCircuits(i).Name = "N"+i;
end

To view the performance of a selected matching network circuit, use rfplot. For instance, to plot the performance of the first matching network for the circuit with Shunt C-Series L-Shunt C topology type this command.

rfplot(match_net(1),freq,cIndex(1));

Figure Circuit 3 contains an axes object. The axes object with title Performance for Circuit 3 ('auto_1') (Passed) contains 3 objects of type line, rectangle. These objects represent Circuit 3: |gammain|, dB, Circuit 3: |Gt|, dB.

Add Matching Network Circuits to 16-Port Network

Create Circuit Object

Create a circuit object and an n-port object for the 16-port network.

ckt         = circuit('patchArray');
array_net   = nport(Sparam_array);

In this example, number of circuit nodes are shown as 17, as nodes 1 through 16 will be used for adding the matching networks.

cktnodes    = (1+numport):(numport+numport);

Add the n-port object to circuit object.

add(ckt, cktnodes, array_net);

View parent nodes of the 16-port network.

disp(array_net)
  nport: N-port element

    NetworkData: [1×1 sparameters]
           Name: 'Sparams'
       NumPorts: 16
      Terminals: {1×32 cell}
    ParentNodes: [17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 0 0 0 0 0 0 0 0 0 0 0 0 0 … ]
     ParentPath: 'patchArray'

An illustration of the circuit object with 16-port n-port is provided.

Initialize the ports.

ports = cell(1,numport);

Add each matching network circuit to its corresponding port one at a time. Port numbers for corresponding matching network circuit are also generated.

for i=1:length(selectedCircuits)
    add(ckt, [i, 0, i+numport, 0], selectedCircuits(i), ...
        {'p1+', 'p1-', 'p2+', 'p2-'});
    ports{i} = [i, 0];
end
% ports = arrayfun(@(x) [x 0],1:10,'UniformOutput',false);

Use the setports function to define the ports for each of the circuits.

setports(ckt,ports{:});

An illustration of the circuit object with n-port and matching network circuits are provided.

Generate and Plot S-Parameters

Generate and plot the S-Parameters of the passive 16-port matching network.

Sparam = sparameters(ckt, freq);

Plot Frequency Responses

Plot the frequency response of the 16-port network before matching.

figure; rfplot(s_params_circ_array); legend off

Figure contains an axes object. The axes object contains 256 objects of type line. These objects represent dB(S_{11}), dB(S_{21}), dB(S_{31}), dB(S_{41}), dB(S_{51}), dB(S_{61}), dB(S_{71}), dB(S_{81}), dB(S_{91}), dB(S_{10,1}), dB(S_{11,1}), dB(S_{12,1}), dB(S_{13,1}), dB(S_{14,1}), dB(S_{15,1}), dB(S_{16,1}), dB(S_{12}), dB(S_{22}), dB(S_{32}), dB(S_{42}), dB(S_{52}), dB(S_{62}), dB(S_{72}), dB(S_{82}), dB(S_{92}), dB(S_{10,2}), dB(S_{11,2}), dB(S_{12,2}), dB(S_{13,2}), dB(S_{14,2}), dB(S_{15,2}), dB(S_{16,2}), dB(S_{13}), dB(S_{23}), dB(S_{33}), dB(S_{43}), dB(S_{53}), dB(S_{63}), dB(S_{73}), dB(S_{83}), dB(S_{93}), dB(S_{10,3}), dB(S_{11,3}), dB(S_{12,3}), dB(S_{13,3}), dB(S_{14,3}), dB(S_{15,3}), dB(S_{16,3}), dB(S_{14}), dB(S_{24}), dB(S_{34}), dB(S_{44}), dB(S_{54}), dB(S_{64}), dB(S_{74}), dB(S_{84}), dB(S_{94}), dB(S_{10,4}), dB(S_{11,4}), dB(S_{12,4}), dB(S_{13,4}), dB(S_{14,4}), dB(S_{15,4}), dB(S_{16,4}), dB(S_{15}), dB(S_{25}), dB(S_{35}), dB(S_{45}), dB(S_{55}), dB(S_{65}), dB(S_{75}), dB(S_{85}), dB(S_{95}), dB(S_{10,5}), dB(S_{11,5}), dB(S_{12,5}), dB(S_{13,5}), dB(S_{14,5}), dB(S_{15,5}), dB(S_{16,5}), dB(S_{16}), dB(S_{26}), dB(S_{36}), dB(S_{46}), dB(S_{56}), dB(S_{66}), dB(S_{76}), dB(S_{86}), dB(S_{96}), dB(S_{10,6}), dB(S_{11,6}), dB(S_{12,6}), dB(S_{13,6}), dB(S_{14,6}), dB(S_{15,6}), dB(S_{16,6}), dB(S_{17}), dB(S_{27}), dB(S_{37}), dB(S_{47}), dB(S_{57}), dB(S_{67}), dB(S_{77}), dB(S_{87}), dB(S_{97}), dB(S_{10,7}), dB(S_{11,7}), dB(S_{12,7}), dB(S_{13,7}), dB(S_{14,7}), dB(S_{15,7}), dB(S_{16,7}), dB(S_{18}), dB(S_{28}), dB(S_{38}), dB(S_{48}), dB(S_{58}), dB(S_{68}), dB(S_{78}), dB(S_{88}), dB(S_{98}), dB(S_{10,8}), dB(S_{11,8}), dB(S_{12,8}), dB(S_{13,8}), dB(S_{14,8}), dB(S_{15,8}), dB(S_{16,8}), dB(S_{19}), dB(S_{29}), dB(S_{39}), dB(S_{49}), dB(S_{59}), dB(S_{69}), dB(S_{79}), dB(S_{89}), dB(S_{99}), dB(S_{10,9}), dB(S_{11,9}), dB(S_{12,9}), dB(S_{13,9}), dB(S_{14,9}), dB(S_{15,9}), dB(S_{16,9}), dB(S_{1,10}), dB(S_{2,10}), dB(S_{3,10}), dB(S_{4,10}), dB(S_{5,10}), dB(S_{6,10}), dB(S_{7,10}), dB(S_{8,10}), dB(S_{9,10}), dB(S_{10,10}), dB(S_{11,10}), dB(S_{12,10}), dB(S_{13,10}), dB(S_{14,10}), dB(S_{15,10}), dB(S_{16,10}), dB(S_{1,11}), dB(S_{2,11}), dB(S_{3,11}), dB(S_{4,11}), dB(S_{5,11}), dB(S_{6,11}), dB(S_{7,11}), dB(S_{8,11}), dB(S_{9,11}), dB(S_{10,11}), dB(S_{11,11}), dB(S_{12,11}), dB(S_{13,11}), dB(S_{14,11}), dB(S_{15,11}), dB(S_{16,11}), dB(S_{1,12}), dB(S_{2,12}), dB(S_{3,12}), dB(S_{4,12}), dB(S_{5,12}), dB(S_{6,12}), dB(S_{7,12}), dB(S_{8,12}), dB(S_{9,12}), dB(S_{10,12}), dB(S_{11,12}), dB(S_{12,12}), dB(S_{13,12}), dB(S_{14,12}), dB(S_{15,12}), dB(S_{16,12}), dB(S_{1,13}), dB(S_{2,13}), dB(S_{3,13}), dB(S_{4,13}), dB(S_{5,13}), dB(S_{6,13}), dB(S_{7,13}), dB(S_{8,13}), dB(S_{9,13}), dB(S_{10,13}), dB(S_{11,13}), dB(S_{12,13}), dB(S_{13,13}), dB(S_{14,13}), dB(S_{15,13}), dB(S_{16,13}), dB(S_{1,14}), dB(S_{2,14}), dB(S_{3,14}), dB(S_{4,14}), dB(S_{5,14}), dB(S_{6,14}), dB(S_{7,14}), dB(S_{8,14}), dB(S_{9,14}), dB(S_{10,14}), dB(S_{11,14}), dB(S_{12,14}), dB(S_{13,14}), dB(S_{14,14}), dB(S_{15,14}), dB(S_{16,14}), dB(S_{1,15}), dB(S_{2,15}), dB(S_{3,15}), dB(S_{4,15}), dB(S_{5,15}), dB(S_{6,15}), dB(S_{7,15}), dB(S_{8,15}), dB(S_{9,15}), dB(S_{10,15}), dB(S_{11,15}), dB(S_{12,15}), dB(S_{13,15}), dB(S_{14,15}), dB(S_{15,15}), dB(S_{16,15}), dB(S_{1,16}), dB(S_{2,16}), dB(S_{3,16}), dB(S_{4,16}), dB(S_{5,16}), dB(S_{6,16}), dB(S_{7,16}), dB(S_{8,16}), dB(S_{9,16}), dB(S_{10,16}), dB(S_{11,16}), dB(S_{12,16}), dB(S_{13,16}), dB(S_{14,16}), dB(S_{15,16}), dB(S_{16,16}).

Plot the frequency response of the 16-port network after matching.

figure; rfplot(Sparam); legend off

Figure contains an axes object. The axes object contains 256 objects of type line. These objects represent dB(S_{11}), dB(S_{21}), dB(S_{31}), dB(S_{41}), dB(S_{51}), dB(S_{61}), dB(S_{71}), dB(S_{81}), dB(S_{91}), dB(S_{10,1}), dB(S_{11,1}), dB(S_{12,1}), dB(S_{13,1}), dB(S_{14,1}), dB(S_{15,1}), dB(S_{16,1}), dB(S_{12}), dB(S_{22}), dB(S_{32}), dB(S_{42}), dB(S_{52}), dB(S_{62}), dB(S_{72}), dB(S_{82}), dB(S_{92}), dB(S_{10,2}), dB(S_{11,2}), dB(S_{12,2}), dB(S_{13,2}), dB(S_{14,2}), dB(S_{15,2}), dB(S_{16,2}), dB(S_{13}), dB(S_{23}), dB(S_{33}), dB(S_{43}), dB(S_{53}), dB(S_{63}), dB(S_{73}), dB(S_{83}), dB(S_{93}), dB(S_{10,3}), dB(S_{11,3}), dB(S_{12,3}), dB(S_{13,3}), dB(S_{14,3}), dB(S_{15,3}), dB(S_{16,3}), dB(S_{14}), dB(S_{24}), dB(S_{34}), dB(S_{44}), dB(S_{54}), dB(S_{64}), dB(S_{74}), dB(S_{84}), dB(S_{94}), dB(S_{10,4}), dB(S_{11,4}), dB(S_{12,4}), dB(S_{13,4}), dB(S_{14,4}), dB(S_{15,4}), dB(S_{16,4}), dB(S_{15}), dB(S_{25}), dB(S_{35}), dB(S_{45}), dB(S_{55}), dB(S_{65}), dB(S_{75}), dB(S_{85}), dB(S_{95}), dB(S_{10,5}), dB(S_{11,5}), dB(S_{12,5}), dB(S_{13,5}), dB(S_{14,5}), dB(S_{15,5}), dB(S_{16,5}), dB(S_{16}), dB(S_{26}), dB(S_{36}), dB(S_{46}), dB(S_{56}), dB(S_{66}), dB(S_{76}), dB(S_{86}), dB(S_{96}), dB(S_{10,6}), dB(S_{11,6}), dB(S_{12,6}), dB(S_{13,6}), dB(S_{14,6}), dB(S_{15,6}), dB(S_{16,6}), dB(S_{17}), dB(S_{27}), dB(S_{37}), dB(S_{47}), dB(S_{57}), dB(S_{67}), dB(S_{77}), dB(S_{87}), dB(S_{97}), dB(S_{10,7}), dB(S_{11,7}), dB(S_{12,7}), dB(S_{13,7}), dB(S_{14,7}), dB(S_{15,7}), dB(S_{16,7}), dB(S_{18}), dB(S_{28}), dB(S_{38}), dB(S_{48}), dB(S_{58}), dB(S_{68}), dB(S_{78}), dB(S_{88}), dB(S_{98}), dB(S_{10,8}), dB(S_{11,8}), dB(S_{12,8}), dB(S_{13,8}), dB(S_{14,8}), dB(S_{15,8}), dB(S_{16,8}), dB(S_{19}), dB(S_{29}), dB(S_{39}), dB(S_{49}), dB(S_{59}), dB(S_{69}), dB(S_{79}), dB(S_{89}), dB(S_{99}), dB(S_{10,9}), dB(S_{11,9}), dB(S_{12,9}), dB(S_{13,9}), dB(S_{14,9}), dB(S_{15,9}), dB(S_{16,9}), dB(S_{1,10}), dB(S_{2,10}), dB(S_{3,10}), dB(S_{4,10}), dB(S_{5,10}), dB(S_{6,10}), dB(S_{7,10}), dB(S_{8,10}), dB(S_{9,10}), dB(S_{10,10}), dB(S_{11,10}), dB(S_{12,10}), dB(S_{13,10}), dB(S_{14,10}), dB(S_{15,10}), dB(S_{16,10}), dB(S_{1,11}), dB(S_{2,11}), dB(S_{3,11}), dB(S_{4,11}), dB(S_{5,11}), dB(S_{6,11}), dB(S_{7,11}), dB(S_{8,11}), dB(S_{9,11}), dB(S_{10,11}), dB(S_{11,11}), dB(S_{12,11}), dB(S_{13,11}), dB(S_{14,11}), dB(S_{15,11}), dB(S_{16,11}), dB(S_{1,12}), dB(S_{2,12}), dB(S_{3,12}), dB(S_{4,12}), dB(S_{5,12}), dB(S_{6,12}), dB(S_{7,12}), dB(S_{8,12}), dB(S_{9,12}), dB(S_{10,12}), dB(S_{11,12}), dB(S_{12,12}), dB(S_{13,12}), dB(S_{14,12}), dB(S_{15,12}), dB(S_{16,12}), dB(S_{1,13}), dB(S_{2,13}), dB(S_{3,13}), dB(S_{4,13}), dB(S_{5,13}), dB(S_{6,13}), dB(S_{7,13}), dB(S_{8,13}), dB(S_{9,13}), dB(S_{10,13}), dB(S_{11,13}), dB(S_{12,13}), dB(S_{13,13}), dB(S_{14,13}), dB(S_{15,13}), dB(S_{16,13}), dB(S_{1,14}), dB(S_{2,14}), dB(S_{3,14}), dB(S_{4,14}), dB(S_{5,14}), dB(S_{6,14}), dB(S_{7,14}), dB(S_{8,14}), dB(S_{9,14}), dB(S_{10,14}), dB(S_{11,14}), dB(S_{12,14}), dB(S_{13,14}), dB(S_{14,14}), dB(S_{15,14}), dB(S_{16,14}), dB(S_{1,15}), dB(S_{2,15}), dB(S_{3,15}), dB(S_{4,15}), dB(S_{5,15}), dB(S_{6,15}), dB(S_{7,15}), dB(S_{8,15}), dB(S_{9,15}), dB(S_{10,15}), dB(S_{11,15}), dB(S_{12,15}), dB(S_{13,15}), dB(S_{14,15}), dB(S_{15,15}), dB(S_{16,15}), dB(S_{1,16}), dB(S_{2,16}), dB(S_{3,16}), dB(S_{4,16}), dB(S_{5,16}), dB(S_{6,16}), dB(S_{7,16}), dB(S_{8,16}), dB(S_{9,16}), dB(S_{10,16}), dB(S_{11,16}), dB(S_{12,16}), dB(S_{13,16}), dB(S_{14,16}), dB(S_{15,16}), dB(S_{16,16}).

Related Topics