J
JSreeniv
Hi all,
I doing functional verification for a module called counter in vhdl by
writing a testbench.
I have a problem in appying a pulse train with 50% duty cycle in
between read and write process of my testplan steps.
In global i hve two clocks:fpga_clk1, dsp_clk1 where in my testbench
both are generated in the process for this module.
Here is my test plan.
1. set power on reset to 0 for 100 ns and then asert to 1;
2. set two bits1:0 to 11 for software period and set 3:2 to 00 for
time base 100 ns;(these actions will be done by processor write, ex:
write(<address of reg>, <value to set>, signal1,signal2....)
3. HERE IS I WANT TO APPLY PULSE TRAIN with period 50 ns (minimum is
20 ns) its variable pule train
4. Laod the count value into the register,its a write process again..
5.Start measurement
Here my problem is when i apply pulse train with some period, the next
write action will be always in ideal no decrement count is happening
on data bus,....
If i apply the same pulse train signal in the two clocks place i am
getting the results.
But i need to test this system with different pulse train signal
periods...
So is there any way to perform this process.
Even i tried giving a pulse train without "process" in between the
sequential statements but same problem,..what i understood is the
pulse train should be synchronus with fpga_clk1, if that is the case
then how can i perform different pulse train signals.
Please help me on this..if any other details that i hve to provide
then please aske me regarding tho this.
I doing functional verification for a module called counter in vhdl by
writing a testbench.
I have a problem in appying a pulse train with 50% duty cycle in
between read and write process of my testplan steps.
In global i hve two clocks:fpga_clk1, dsp_clk1 where in my testbench
both are generated in the process for this module.
Here is my test plan.
1. set power on reset to 0 for 100 ns and then asert to 1;
2. set two bits1:0 to 11 for software period and set 3:2 to 00 for
time base 100 ns;(these actions will be done by processor write, ex:
write(<address of reg>, <value to set>, signal1,signal2....)
3. HERE IS I WANT TO APPLY PULSE TRAIN with period 50 ns (minimum is
20 ns) its variable pule train
4. Laod the count value into the register,its a write process again..
5.Start measurement
Here my problem is when i apply pulse train with some period, the next
write action will be always in ideal no decrement count is happening
on data bus,....
If i apply the same pulse train signal in the two clocks place i am
getting the results.
But i need to test this system with different pulse train signal
periods...
So is there any way to perform this process.
Even i tried giving a pulse train without "process" in between the
sequential statements but same problem,..what i understood is the
pulse train should be synchronus with fpga_clk1, if that is the case
then how can i perform different pulse train signals.
Please help me on this..if any other details that i hve to provide
then please aske me regarding tho this.