Re: [myhdl-list] calls with mismatched arguments being passed quietly
Brought to you by:
jandecaluwe
From: Henry G. <he...@ca...> - 2015-01-11 21:28:59
|
On 11/01/15 19:42, Josy Boelen wrote: <snip> > If we write a self-checking test-bench the 'error' will be flagged too > as the simulation will fail.(I'm not going to do this exercise as I > would solve the problem early on by correcting the warning given by > Pydev in Eclipse) The warning you highlight is a red herring as it's referring to the outer-most closure. Consider the following change: def Test(an_arg, clock, reset): @always_seq(clock.posedge, reset=reset) def test_case(): if an_arg: bleh() return test_case This converts with no warnings but the same symptoms. You're quite right this should be picked up by testing, but I don't think it should pass quite so quietly as it does. Cheers, Henry |