[myhdl-list] intbv return types
Brought to you by:
jandecaluwe
From: Christopher L. F. <chr...@gm...> - 2009-04-12 03:31:10
|
Curiosity, what was the rational behind the mathematical operators for the intbv object returning the integer values and the logic operators (shifts, and, or, xor, etc) returning an intbv object? Example a = intbv(1) b = intbv(2) c = a + b type(c) <type 'int'> c = a ^ b type(c) <class 'myhdl._intbv.intbv'> Thanks Chris |