[SOLVED] vhdl testbench strange problem with a ripple carry select
Hi all,
i have a strange problem with a testbench, if i define the inputs separately i have no problem,but if i use two for loops to have more combinations easly the second input BB9 is equal to "UUUUUUUUUU" like the output!
could you have a look to these files?
sensitivity lists tell the simulator which signals to monitor to change the output. An empty sensitivity list will mean outputs depend on no inputs, therefore it will never change. The sensitivity list only applies to simulation, it is ignored in synthesis so you must be careful your sensitivity list is complete.
Hi,
The sensitivity lists is used to compute the new value of the output when the signal in the sensitivity list changes. If no sensitivity list is used then the process runs continuously without waiting for any input. So actually it will keep on changing and if you did not had any wait statements or time delays in your process then the simulator will hang as this process will be continuously executed forever.
the input B is driven in the testbench from the signal BB9, if i use direct assignment like BB9<="000010000"; it works, but if i use the for loop to do all the combinations, it seem to be floating...it doesn't have any sense for me...i checked the code several time but i can't understand!
In the code you posted, the BB9 assignments inside the loop happen after AA9 has been assigned 256 times. So on the first iteration (iee 256 x 50ns) BB9 will be "UUUU" because it has not bee assigned yet. Put the BB9 assignment before the AA9 loop.
In the code you posted, the BB9 assignments inside the loop happen after AA9 has been assigned 256 times. So on the first iteration (iee 256 x 50ns) BB9 will be "UUUU" because it has not bee assigned yet. Put the BB9 assignment before the AA9 loop.
before the loop i set the signal BB9 to 0, so in the first iteration just AA9 should changes, but this instruction BB)<="000000000" seem to be useless!
what do you suggest to do all the combinations?!
---------- Post added at 16:31 ---------- Previous post was at 16:26 ----------
SOLVEEEEDDD!!!
the instruction BB9 <= "000000000" ; must be into the process!!!
thanks a lot to all!!!