Python4RTLVerification
Python4RTLVerification copied to clipboard
Issue regarding execution of testbench.py in 25_Class_Based_testbench_2.0
I am trying to execute the testbench.py file in 25_Class_Based_testbench_2.0 but error coming at execution of MaxTest. Error coming like Failing test at simulator request before test run completion. Simulator shut down prematurely. What to do now.
I need more details to help.
Which simulator? Can you copy and paste the error messages?
That example works, so there is something in the environment.
I am using GitBash terminal to execute and i mentioned SIM as modelsim in makefile.
On Mon, 5 Feb, 2024, 3:52 pm Ray Salemi, @.***> wrote:
I need more details to help.
Which simulator? Can you copy and paste the error messages?
That example works, so there is something in the environment.
— Reply to this email directly, view it on GitHub https://github.com/raysalemi/Python4RTLVerification/issues/16#issuecomment-1926653425, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARA5PVXNMOZEDHWSCLNJ5TLYSCXH7AVCNFSM6AAAAABCZUPOHSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRWGY2TGNBSGU . You are receiving this because you authored the thread.Message ID: @.***>
0.00ns INFO cocotb.regression Found test tinyalu_cb.random_test 0.00ns INFO cocotb.regression Found test tinyalu_cb.max_test 0.00ns INFO cocotb.regression running random_test(1/2) Random operands 240.00ns INFO root PASSED: 35 ADD 89 = 124 240.00ns INFO root PASSED: 196 AND 12 = 4 240.00ns INFO root PASSED: 133 XOR 198 = 67 240.00ns INFO root PASSED: 195 MUL 81 = 15795 240.00ns INFO root Covered : 100.0% 240.00ns INFO cocotb.regression random_test passed 240.00ns INFO cocotb.regression running max_test(2/2) Maximum operands 245.00ns ERROR cocotb.scheduler Failing test at simulator request before test run completion. Simulator shut down prematurely. 245.00ns ERROR cocotb.regression Test Error has lead to simulator shutting us down
I executed the above mentioned example in GitBash terminal and mentioned SIM ?= modelsim in makefile
and also why two dummy operations are initialised
0.00ns INFO cocotb.regression Found test tinyalu_cb.random_test 0.00ns INFO cocotb.regression Found test tinyalu_cb.max_test 0.00ns INFO cocotb.regression running random_test(1/2) Random operands 240.00ns INFO root PASSED: 35 ADD 89 = 124 240.00ns INFO root PASSED: 196 AND 12 = 4 240.00ns INFO root PASSED: 133 XOR 198 = 67 240.00ns INFO root PASSED: 195 MUL 81 = 15795 240.00ns INFO root Covered : 100.0% 240.00ns INFO cocotb.regression random_test passed 240.00ns INFO cocotb.regression running max_test(2/2) Maximum operands 245.00ns ERROR cocotb.scheduler Failing test at simulator request before test run completion. Simulator shut down prematurely. 245.00ns ERROR cocotb.regression Test Error has lead to simulator shutting us down
I executed the above mentioned example in GitBash terminal and mentioned SIM ?= modelsim in makefile
This looks like a cocotb issue. I'm not sure what causes it. I would ask on the cocotb issues site: https://github.com/cocotb/cocotb/issues
and also why two dummy operations are initialised
Dummy operations?
Like in the code you mentioned like await self.bfm.send_op(0,0,1) if we gave this only output is coming? Why we have to give this line?
On Tue, 6 Feb, 2024, 3:34 am Ray Salemi, @.***> wrote:
and also why two dummy operations are initialised
Dummy operations?
— Reply to this email directly, view it on GitHub https://github.com/raysalemi/Python4RTLVerification/issues/16#issuecomment-1928186123, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARA5PVQMLDEEETD2EYQOOVLYSFJQBAVCNFSM6AAAAABCZUPOHSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRYGE4DMMJSGM . You are receiving this because you authored the thread.Message ID: @.***>
I believe those let the pipeline empty.
On Mon, Feb 5, 2024 at 9:02 PM Saikiran196 @.***> wrote:
Like in the code you mentioned like await self.bfm.send_op(0,0,1) if we gave this only output is coming? Why we have to give this line?
On Tue, 6 Feb, 2024, 3:34 am Ray Salemi, @.***> wrote:
and also why two dummy operations are initialised
Dummy operations?
— Reply to this email directly, view it on GitHub < https://github.com/raysalemi/Python4RTLVerification/issues/16#issuecomment-1928186123>,
or unsubscribe < https://github.com/notifications/unsubscribe-auth/ARA5PVQMLDEEETD2EYQOOVLYSFJQBAVCNFSM6AAAAABCZUPOHSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRYGE4DMMJSGM>
. You are receiving this because you authored the thread.Message ID: @.***>
— Reply to this email directly, view it on GitHub https://github.com/raysalemi/Python4RTLVerification/issues/16#issuecomment-1928647775, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYFXWSRETYCJ6ZWPM4MB5DYSGFMNAVCNFSM6AAAAABCZUPOHSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRYGY2DONZXGU . You are receiving this because you commented.Message ID: @.***>
I am trying to execute Frequency divider using cocotb python testbench. But when i am trying to execute the makefile, I am getting error like No root handle found
Simulator : modelsim simulator version : modelsim 10.5 OS : Windows 10 cocotb version : 1.8.1 Python Version : 3.10
For one code output is coming and for one code output is printing like No root handle found For some codes only no root handle error is coming
what is the reason for this error sir?
It is a bug in your code, but we would need to see the code to help
Thank You sir . Now it's working . That Couldn't root handle error is because of the file name convention.
On Wed, 7 Feb 2024 at 15:37, Ray Salemi @.***> wrote:
It is a bug in your code, but we would need to see the code to help
— Reply to this email directly, view it on GitHub https://github.com/raysalemi/Python4RTLVerification/issues/16#issuecomment-1931699380, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARA5PVRK45DOY23T2H2M7CTYSNG55AVCNFSM6AAAAABCZUPOHSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZRGY4TSMZYGA . You are receiving this because you authored the thread.Message ID: @.***>