Closed mickey4u closed 5 years ago
Without testing: the default statement gives the correct values for bcd 4'b1010 to bcd 4'b1111 so that should be the extra six passes. When debugging something small like this adding some debugging print statements would help you determine which tests were passing and which were failing.
Cary
Have you resolved this yet? Cary's answer should have helped you.
Not resolved yet.
Regards, Michael
On Tue, 23 Jul 2019 at 11:59, martinwhitaker notifications@github.com wrote:
Have you resolved this yet? Cary's answer should have helped you.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/steveicarus/iverilog/issues/246?email_source=notifications&email_token=ADTYTGIUU2GC7XCECDUE633QA3QBVA5CNFSM4HODUEG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2SXZBI#issuecomment-514161797, or mute the thread https://github.com/notifications/unsubscribe-auth/ADTYTGO2VDSG65HBUMA5DTLQA3QBVANCNFSM4HODUEGQ .
Add the line
$display("%d %b %b %d", i, bcd, segment, passed_cases);
at the end of the for loop in your assertOutput
task and see what that shows you.
Without a complete example (you do not include the contents of your testcases file) we are left to assume that the problem is with your code. We cannot be expected to debug your code for you, so I'm going to close this issue. If you provide the missing parts of the issue, and offer some evidence that Icarus Verilog is incorrect, we'll be happy to reopen the issue.
I have a design module and a corresponding test-bench. I am using icarus verilog as well but I am getting the number of passed cases to be 11 instead of 5. What could be wrong?