On 03/20/2012 09:10 PM, Matthew Hicks wrote:
It doesn't as r0 will not be set to 0 in some environments. In some cases 32'hXXXXXXXX AND 32'h0 != 32'h0, but l.movhi r0, 0 always sets r0 = 32'h0. Note that r0 starts in ModelSim with the value 32'hXXXXXXXX.
in what cases? 32'hxxxxxxxx & 32'h0 _should_ be 32'h0 Stefan _______________________________________________ OpenRISC mailing list [email protected] http://lists.openrisc.net/listinfo/openrisc
