[Oberon] FPGA - RISC multiply/divide

Jörg joerg.straube at iaeth.ch
Tue May 23 11:23:14 CEST 2017


Tonas

http://www.homeschoolmath.net/teaching/md/division-repeated-subtraction.php

Jörg

> Am 23.05.2017 um 11:09 schrieb Tomas Kral <thomas.kral at email.cz>:
> 
> Hi,
> 
> I am reading chapters on RISC implementation. I managed to
> understand multiplication - `MUL' instruction, consisting of shifting x
> and adding y to the product.
> 
> I seem not understanding the division, chapter 16.2.3.
> In the example for x=14, y=4 gives quotient q=4, and the remainder r=2.
> 
> But...
> q = x DIV y = 3, r = x MOD y = 2
> ???
> 
> -- 
> Tomas Kral <thomas.kral at email.cz>
> --
> Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
> https://lists.inf.ethz.ch/mailman/listinfo/oberon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.inf.ethz.ch/pipermail/oberon/attachments/20170523/90775edd/attachment.html>


More information about the Oberon mailing list