1
function [x,y,typ]=MUX_f(job,arg1,arg2)
8
[x,y,typ]=standard_inputs(arg1)
10
[x,y,typ]=standard_outputs(arg1)
12
[x,y]=standard_origin(arg1)
15
graphics=arg1(2);label=graphics(4)
18
[ok,in,label]=getvalue('Set MUX block parameters',..
19
'number of input ports',list('vec',1),label)
22
message('Block must have at least two input ports and at most eight')
24
[model,graphics,ok]=check_io(model,graphics,-[1:in]',0,[],[])
26
graphics(4)=label;model(9)=in
27
x(2)=graphics;x(3)=model
32
x(3)(11)=[] //compatibility
35
model=list(list('mux',1),-[1:in]',0,[],[],[],[],[],[in],..
36
'c',[],[%t %f],' ',list())
38
gr_i='xstringb(orig(1),orig(2),''Mux'',sz(1),sz(2),''fill'')'
39
x=standard_define([2 2],model,label,gr_i)