function [iport,tnext] = siggeneratortb(oport,tnow,portinfo)
%

%   Copyright 2009 The MathWorks, Inc.

global clockperiod;
persistent actualout;

tnext=[];
iport = struct();

% Calculating value noting point.
tick=round(tnow/clockperiod);

% Save the oport.signal_out to be compared against reference file
signal_out = oport.signal_out';
actualout = [actualout signal_out];

% save first 100 values(a value at each clockperiod).
if tick == 100
    save('siggen_output', 'actualout')
end

tnext=tnow+clockperiod;