O módulo prosource abaixo está codificado em Verilog AMS.
“
module prosource (vout) ;
output vout ;
voltage vout ;
parameter real wavelength = 10.0, amplitude = 1.0 ;
integer slope ;
real wstart ;
analog begin
@(timer(0, wavelength)) begin
slope = +1 ;
wstart = $abstime ;
$discontinuity (1);
end
@(timer(wavelength/2, wavelength)) begin
slope = -1 ;
wstart = $abstime ;
$discontinuity (1);
end
V(vout) <+ amplitude * slope * (4 * ($abstime - wstart) / wavelength-1) ;
end
endmodule
“
module prosource (vout) ;
output vout ;
voltage vout ;
parameter real wavelength = 10.0, amplitude = 1.0 ;
integer slope ;
real wstart ;
analog begin
@(timer(0, wavelength)) begin
slope = +1 ;
wstart = $abstime ;
$discontinuity (1);
end
@(timer(wavelength/2, wavelength)) begin
slope = -1 ;
wstart = $abstime ;
$discontinuity (1);
end
V(vout) <+ amplitude * slope * (4 * ($abstime - wstart) / wavelength-1) ;
end
endmodule
“
Esse modelo descreve uma
Provas
Questão presente nas seguintes provas