Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Random Test Generator and Seed

Status
Not open for further replies.

shaikss

Full Member level 4
Joined
Jun 18, 2007
Messages
229
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,298
Activity points
3,319
Can anyone pls explain the importance of seed in random test generator?
Why the output changes when the value of the seed changes?
 

hey its simple buddy....
a random test generator is nothing but a function with an input parameter called seed....
so as seed varies ...output may also vary which depends upon how tht function is implemented....

a seed is used so tht u can generate different random patterns (as its always a Psuedo random logic in hardware rather than being totally random)...so u need to provide a seed.....

simple saying for eg. ur random pattern may start from ur seed value...so if ur seed is 5 ...ur random pattern starts frm 5...n so on...

hope u get it
 

    shaikss

    Points: 2
    Helpful Answer Positive Rating
Thanks for the info.
But still I have one doubt.
I am writing the test cases in XML,as the RTG has XML based file interface.
Suppose if I give the seed as 1000, it gives one set of assembly isntructions.
But if I give seed as 67854, it gives another set of instructions.
I didn't get how it varies.
you mentioned that if u give seed as 5, the random pattern starts from 5.
So, if i give as 1000, from where the instruction generation starts?
Can you explain me in detail.
 

hi, i just explained the very basics of seed n random generation logic.....
but i've no idea abt RTG n the assembly instrns u r talking abt....probably someone actually working in RTG may help u out ......or rather go thru some documentions...
 

I have an idea that if the seed is 5,random number generator takes the seed as intial value. But I am not getting how to correlate with the assembly instructions.
Suppose for example, I wrote a test script for an ADD instruction and run the test case with different seeds. On what basis does the random test generator generate the sequence of instructions? Pls help me out
 

The random mechanism is pseu-random. If you are interest in the sequence of the instruction, you can research on the pseu-random mechanism.
 

    shaikss

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top