OpenCores
no use no use 1/1 no use no use
About or1k multiplication
by Unknown on Jun 1, 2004
Not available!
Hi
I have the following three question about mul:

1.How does the soft multiplication implemented in gcc?

2.How many instruction periods the soft multiplication costs?

3.How many instruction periods the hard multiplication costs?

Could someone explain to me?

Thanks and Regards

About or1k multiplication
by Unknown on Jun 1, 2004
Not available!
* Liu Zhigang (305liuzg@163.net) wrote:
Hi
I have the following three question about mul:

1.How does the soft multiplication implemented in gcc?


you enable it in -msoft-mul, it's implemented in gcc/config/or32/or32.S

2.How many instruction periods the soft multiplication costs?


many. ;) don't know really, just look at the implementation.

3.How many instruction periods the hard multiplication costs?


1.

regards,
p.

About or1k multiplication
by Victor on Jun 1, 2004
Victor
Posts: 9
Joined: Mar 1, 2002
Last seen: Jul 3, 2002
I wonder if the hard-multiplication would cost only one period to
execute... it is usually implemented as a multicycle operation so as to
avoid a large hardware multiplier. Although for all practical matters
it can start one multiply operation every cycle but may finish in 5,10,
20 cycles, depending on the silicon implementation. Ideally it would be
1 but I wouldn't pay the difference in sillicon as multiplies are not
used that often so that we can not wait some cycles till it finishes,
but I guess that's the compiler's problem... or am I mistaken? anybody
can shed some light on this, please?


* Liu Zhigang (305liuzg@163.net) wrote:
> Hi
> I have the following three question about mul:
>
> 1.How does the soft multiplication implemented in gcc?


you enable it in -msoft-mul, it's implemented in

gcc/config/or32/or32.S

> 2.How many instruction periods the soft multiplication costs?


many. ;) don't know really, just look at the implementation.

> 3.How many instruction periods the hard multiplication costs?
1. regards, p. _______________________________________________ http://www.opencores.org/mailman/listinfo/openrisc






no use no use 1/1 no use no use
© copyright 1999-2026 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.