| Author |
Message |
Black Jack
Joined: 02 Dec 2003 Posts: 214 Helped: 10 Location: UKRAINE
|
15 Jul 2008 13:07 Simulation with VHDL: How to create stimulus with Jitter? |
|
|
|
Hello!
I`m need to create clock stimulus with jitter.
I think that need to generate random numbers in desired range and
add/substract from constant for period.
What you think about this?
Can anyone share examples of VHDL code?
-- Regards, Jack
|
|
| Back to top |
|
 |
nand_gates
Joined: 19 Jul 2004 Posts: 898 Helped: 117
|
16 Jul 2008 10:15 Re: Simulation with VHDL: How to create stimulus with Jitter |
|
|
|
| You are on right track! That the way we generate clock with gitter!
|
|
| Back to top |
|
 |
mehrzad321
Joined: 14 Feb 2008 Posts: 5
|
23 Jul 2008 8:26 Simulation with VHDL: How to create stimulus with Jitter? |
|
|
|
| You must use functions in "ieee.math_real" library to generate random numbers in a limited interval.
|
|
| Back to top |
|
 |
Black Jack
Joined: 02 Dec 2003 Posts: 214 Helped: 10 Location: UKRAINE
|
23 Jul 2008 8:36 Re: Simulation with VHDL: How to create stimulus with Jitter |
|
|
|
| tohidsedghi wrote: |
| it is perfect |
1) Whats "perfect"?
2) Thanks for gurus from http://verificationguild.com.
They advise me with code like this
| Code: |
sys_clk_process: process
-- variables for uniform
variable seed1, seed2 : positive;
variable r : real;
begin
uniform(seed1, seed2, r);
d <= r * 1 ns;
wait for SYS_CLK_PERIOD/2;
clock <= '0';
wait for SYS_CLK_PERIOD/2;
clock <= '1';
end process;
sys_clk <= transport clock after d;
|
|
|
| Back to top |
|
 |