Re: [myhdl-list] No proper edge value test
Brought to you by:
jandecaluwe
From: Jan D. <ja...@ja...> - 2012-07-18 11:24:48
|
On 07/18/2012 05:05 AM, Christopher Felton wrote: > With the latest 0.8dev code the following will cause > a "No proper edge value test" > > def testm(clock, reset, out): > @always(clock.posedge, reset.negedge) > def hdl(): > if not reset: > out.next = 0 > else: > out.next = out ^ 0x55 > > return hdl > > def convert(): > clock = Signal(False) > reset = Signal(False) > out = Signal(intbv(0)[8:]) > toVerilog(testm, clock, reset, out) > toVHDL(testm, clock, reset, out) > > > Is this expected behavior? This could possibly break > existing code. Don't think so - same in 0.7. Yes, I would call it expected behavior. A reset should check on a value - giving it a logical interpretation can only lead to confusion. (As here, where 'not reset' checks for an active reset.) -- Jan Decaluwe - Resources bvba - http://www.jandecaluwe.com Python as a HDL: http://www.myhdl.org VHDL development, the modern way: http://www.sigasi.com World-class digital design: http://www.easics.com |