|
From: Stephen W. <st...@ic...> - 2014-01-21 18:26:45
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Yep, that's an Icarus Verilog bug and needs to be filed.
ISim is correct that 2'b10 + 2'b10 == 2'b00.
On 01/21/2014 10:19 AM, Sébastien Bourdeauducq wrote:
> On 01/21/2014 07:17 PM, Stephen Williams wrote:
>>> $display("%b", 2'd2 + 2'd2);
>> I'm actually surprised that this displays 100, as that is 3 bits,
>> and the expression is only 2 bits.
>
> FWIW Xilinx ISim displays 00 here.
>
>
>
> ------------------------------------------------------------------------------
>
>
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> Learn Why More Businesses Are Choosing CenturyLink Cloud For
> Critical Workloads, Development Environments & Everything In
> Between. Get a Quote or Start a Free Trial Today.
> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
>
>
_______________________________________________
> Iverilog-devel mailing list Ive...@li...
> https://lists.sourceforge.net/lists/listinfo/iverilog-devel
>
- --
Steve Williams "The woods are lovely, dark and deep.
steve at icarus.com But I have promises to keep,
http://www.icarus.com and lines to code before I sleep,
http://www.picturel.com And lines to code before I sleep."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlLeu94ACgkQrPt1Sc2b3inIGwCeMFvfD0GpOdGPVDXSyXGRvcGn
zH0AoIR01U49bovXW06d7unzqYppd+t6
=xwq5
-----END PGP SIGNATURE-----
|