[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [f-cpu] opcodes : missing m4
--- Yann Guidon <whygee@f-cpu.org> wrote:
> jaap stolk wrote:
> > --- Yann Guidon <whygee@f-cpu.org> wrote:
-- snip -- snip --
> ok. do i remove the pipeline stage (with
> tmp_function)
> from eu_rop2_cycle() ? i believe that there
> should
> be no mention of "stalled" in the execution
> units
> ok so i do it.
i just dit the same in the ASU unit.
i was working in 10+ files at once, but it looks
(nearly) ok now. :-)
> mmmm now you manage this in the Xbar so i can simply
> strip the pipeline worries out of ROP2, right ?
yes.
<off topic:>
i came across
http://www.pullmoll.de/sqrt.htm
today (digging for a smaler GNUmp)
you feed bytes of the number x into this:
( MSByte first )
dig_c := dig_c - 1;
nextd := input AND dmask;
nextd := nextd SHR (dig_c*8);
dmask := dmask SHR 8;
digit := digit SHL 8;
digit := digit + nextd;
sub_c := 0;
condf := digit - subst;
while condf >= 0 do begin
digit := condf;
subst := subst + 2;
sub_c := sub_c + 1;
condf := digit - subst;
end;
outpu := outpu SHL 4;
outpu := outpu + sub_c;
subst := outpu SHL 5;
subst := subst + 1;
and it outputs 1/2 byte of sqrt(x) at a time :-)
( i estimated +/- 130 instructions to do a
sqrt(32_bit)=16_bit )
jaap
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
*************************************************************
To unsubscribe, send an e-mail to majordomo@seul.org with
unsubscribe f-cpu in the body. http://f-cpu.seul.org/