The transient pulse and gpulse functions support a pattern-specification language borrowed from the pattern source of HSPICE. This applies only when a period is given so that the source would provide periodic output. The pattern_spec must appear after the additional delay numbers, if any. The patterning enables the user to select in which periods a pulse is actually generated, and applies to all periodic trains if additional delays are given.
The pattern_spec consists of one or more ``bstrings'', each of which can have modifying options.
bdata [r[=rpt]] [rb=bit] ...
The first token is the bstring, which must start with the letter `b' (case insensitive) and continues for arbitrary length with 0 and 1 to indicate the presence or absence of a pulse in each period frame, traversing left to right. Actually, the characters 0,f,F,n,N are taken as `0', anything else is taken as '1'. Note that the HSPICE m (intermediate value) and z (disconnected) are not currently supported.
A bstring can be followed by up to one each of two case-insensitive options.
An arbitrary number of bstrings with options can appear in the specification, the result from each bstring with options will be concatenated. If indefinite repetition is specified for a bstring, any bstrings that follow will be ignored.
b101101 r=1 rb=2 b000111