Activity
-
Hassan started the topic VHDL Assert that prints the entity instance name and path in the forum VHDL 1 year, 3 months ago
This question is specifically about Assert used to validate the generics of VHDL entity. It is clear that one can use Assert statement to check the value of generic and if the assert fails, the synthesis will stop with error.
There are two basic questions about this:
1. Should such an Assert statement be inside or outside process? Different…[Read more]
-
Michael became a registered member 1 year, 3 months ago
-
Bill became a registered member 1 year, 3 months ago
-
Swathy S became a registered member 1 year, 3 months ago
-
Reymund became a registered member 1 year, 3 months ago
-
Omar became a registered member 1 year, 3 months ago
-
Jim Lewis replied to the topic SBRD package issue with Modelsim FPGA edition in the forum OSVVM 1 year, 3 months ago
This is just the VHDL signal use model when reading it after assigning it in a process. Since RTL does not allow wait for 0 ns, it is limited to testbenches.
Verilog assignments have the same sort of issue.
-
Jim Lewis replied to the topic SBRD: Check API uses AffirmIf, why GetAffirmCount is 0? in the forum OSVVM 1 year, 3 months ago
Hi Ajeetha,
Next time please provide a complete testable example, such as I have provided below. Try running this.library osvvm ;
context osvvm.OsvvmContext ;
use osvvm.ScoreboardPkg_int.all ;entity TbSB_GetAffirmCount_1 is
end TbSB_GetAffirmCount_1 ;architecture GetAffirmCount_1 of TbSB_GetAffirmCount_1 is
begin
ControlProc :…[Read more]
-
Ajeetha Kumari started the topic SBRD: Check API uses AffirmIf, why GetAffirmCount is 0? in the forum OSVVM 1 year, 3 months ago
SBRD User guide says:
<quote>
Check a received value (ActualType) with value in scoreboard. The Match function is
used to determine if the received and expected values match. Checking is handled by
AffirmIf. As a result, if they match a log PASSED is generated, otherwise, an alert
ERROR is generated.
</quote>I didn’t create any AlertID (yet),…[Read more]
-
Ajeetha Kumari replied to the topic SBRD package issue with Modelsim FPGA edition in the forum OSVVM 1 year, 3 months ago
That worked, thanks. Can we bukcteize this as potential race condition?
-
Evangelos became a registered member 1 year, 3 months ago
-
Jim Lewis replied to the topic SBRD package issue with Modelsim FPGA edition in the forum OSVVM 1 year, 3 months ago
Do:
stim : process
begin
SB_int <= NewID("COUNT_SB");
wait for 0 ns; -- let SB_int to update
report ("SB_int: " & integer'image(SB_int.Id));
i_up_or_down <= '0';
push(SB_int, 2);
. . . -
Ajeetha Kumari replied to the topic SBRD package issue with Modelsim FPGA edition in the forum OSVVM 1 year, 3 months ago
I guessed that and did add a 1ns delay before calling NewID – please see the stim process above. Still no luck!
Thanks
-
Jim Lewis replied to the topic SBRD package issue with Modelsim FPGA edition in the forum OSVVM 1 year, 3 months ago
Hi Ajeetha,
Nope. That is integer’left.Put a “wait for 0 ns” before reading the signal. That allows a simulation cycle to go by and the signal to update to the value assigned by NewID.
Jim
-
Evangelos became a registered member 1 year, 3 months ago
-
Guy became a registered member 1 year, 3 months ago
-
Timothée became a registered member 1 year, 3 months ago
-
Ajeetha Kumari started the topic SBRD package issue with Modelsim FPGA edition in the forum OSVVM 1 year, 3 months ago
Thanks Jim for the help with MTI version check (18.1 produces a seg-fault with NewID call). Now I have updated to the latest available – 20.1 and I see that seg-fault is resolved. However, during push I get:
<log>
# Time: 1 ns Iteration: 0 Instance: /tb_af_up_dn_counter/u_testcase
# %% Alert FAILURE in OSVVM, Scoreboard Push Index:…[Read more] -
Ajeetha Kumari replied to the topic Generic testControlProc – can this be a pattern? in the forum OSVVM 1 year, 3 months ago
Thanks, aligns with my thoughts. Yes the generator already creates/uses clock/reset procedures.
Regards
Ajeetha -
Jim Lewis replied to the topic Generic testControlProc – can this be a pattern? in the forum OSVVM 1 year, 3 months ago
Depending on what becomes the pattern, it could be a concurrent procedure call (if it encapsulates the entire process), a sequential procedure call (if it only encapsulates most of the process), or as you suggested an entity (but may be more than we need).
Also note that OSVVM’s TbUtilPkg has a CreateClock and a CreateReset
- Load More