Cri Azzolini wrote on Apr 1st, 2008, 9:30am:Hi Panchoo,
thanks for the reply but I do not need to replicate the PWL waveform. I have a defined, not random, pattern, i.e. 1001111, defined by the PWLF file and I would like to change the period of both 0's and 1's bit time of the stimulous with a parameter or variable.
Your needs is mutiple periods or local period.
You expect something like "1,0[2],1[4]" for expressing "1001111".
Such syntax is possible, for example, in Agilent ADS's Ptolemy.
As John O Donovan says, we can do same repeat as Ptolemy using vsource(type=bit) with pattern statement in Spectre.
%spectre -h pattern
*******
Pattern
*******
Patterns are used to specify the digital bit string. Parameter data must be
given. It is a string consists of 1, 0, m and z. For example, data="1011mz11".
It can also contain a previous defined pattern. For example:
p1 pattern data="111000"
p2 pattern data="1z,p1,z0"
Here, data of p2 is tha same as "1z111000z0".
parameters rptstart and rpttimes are used to specify the repeat pattern of the
bit string. For example:
pa pattern data="110mz1" rptstart=3 rpttimes=2
The bit string will be "110mz10mz10mz1". If there are predifined patterns in
the data string, the bit string is flattened first, then repeat as specified by
rptstart and rpttimes. For example:
p1 pattern data="111000"
p2 pattern data="1z,p1,z0" rptstart=4 rpttimes=1
The bit string of p2 is "1z111000z011000z0".
This device is supported within altergroups.
Synopsis:
Name pattern <parameter=value> ...
===================
Instance Parameters
===================
1 data The bit string. A string that contains a series of
the four states, 1 0 m z.
2 rptstart=1 The starting bit when repeating. The data repeats
from the specified bit to the end of the bit string.
The parameter should be an integer from 1 to the
length of the bit string.
3 rpttimes=0 The repeat times. The output will maitain the state
of the last bit after the last repeat. The parameter
should be a nonnegative integer.
Cri Azzolini wrote on Apr 1st, 2008, 9:30am:Maybe there is a special sintax in order to insert design variable in the PWLF file but I was not able to find that.
Why do you think so ? Again this is impossible.
You should use vsource(type=bit) with pattern statement or VCD(Value Change Dump) file as stimulus in Spectre netlist.
New Features in the MMSIM6.0 USR1 Release
Vector File Support
Spectre has been enhanced to support the inclusion of a digital vector file, similar to the
SPICE .vec statement. Spectre now understand the SPICE syntax, and also provides
vec_include, vcd_include, and evcd_include statements for users working with
Spectre syntax.