design matching networks for passive multiport network -凯发k8网页登录
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])
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 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 . 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));
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 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
plot the frequency response of the 16-port network after matching.
figure; rfplot(sparam); legend off