Re: [OpenSTA-users] selecting random data from file
Brought to you by:
dansut
|
From: Bernie V. <Ber...@iP...> - 2007-08-16 19:46:55
|
> Hello,
> Is it possible to select data randomly from a file? I doesn't appear to be
> the case out-of-box, if you know of a work around please let me know.
No, but you could always sort the file's contects so that the order is
random (e.g using Excel) and then access it sequentially (NEXT command).
This is the most efficient way to do what you want. Or you could load an
array from a file and access it randomly. Or you could create a character
list and access it randomly with the generate command like this;
character*4 liststr ("a", "B", "C"), script
generate liststr
>
> I created a variable whose source type is file and marked it as "Random",
> when I try to access the file using the 'generate' command I get an error
> "invalid operand type."
Unfortunately, you can only do sequential operations on files (using the
NEXT command) . GENERATE implies random access to a list or range.
All the best,
Bernie Velivis
Performax Inc (www.iPerformax.com)
2 Colburn Lane, Hollis, NH 03049, 603.860.7900
Need rapid response OpenSTA support and bug fixes?
Learn more at http://iperformax.com/services.html
|