[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [f-cpu] C/VHDL code and fcpusim



hi,

--- Yann Guidon <whygee@f-cpu.org> wrote:
> hi,
> 
> now that EU_ROP2 is working exactly the same
> in C and VHDL, i'm now working on the register set.
> 
> Because i reuse several parts of the code for the
> testbenches (particularly the viewing parts)
> i am forced (more or less, but that's what i did
> anyway)
> to do several modifications on the existing code :
>  - rewrite the *_view() to clear the syntax and
>    removing the g() and n(). One compromise would be
>    to use the form "%s" inside the string itself,
>    and we put the corresponding escape codes at the
>    end of the printf. I don't know yet where to put
>    the constant, so it is acessed both by fcpusim
> and
>    the testbenches, but a subfile from
> f-cpu_config.h
>    would be ok.
>  - i moved the contents of the registers_view.c to
>    registers.c, and adapted the .h accordingly.
>    both fcpusim and test_registers.c need it, so
>    a separate file is not justified.
>  - modified/corrected the runme.sh
sound ok, i'll wait with changing it till is get
your snapshot.

> 
> Btw, i think that there are some race conditions in
> the VHDL version of the register set. i'll correct
> that
> and upload my snapshot (but not before tomorrow).

i made some small changed to the scheduler and a
couple other files, and now register movement is
working ok. i can even do:
add r1,r2,r3
nop
move   r4,r5
and r3 and r5 get writen to the register unit at the
same time !! (as long as you don't save the carry)

abot an extra 0-cycle unit for the register moves:
we also could add an extra ouput to an existing
unit, and use that as a 0-cycle bypass.

about your last snapshot:
there where some dubble/unused files.
the fcpusim_view.c/.h files are not needed
(its all in fcpusim.c/.h)
i als removed the notes_view.c file

i'll upload my snapshot as soon as i added your
changes.

> ok, time to sleep, have fun and be careful,
> WHYGEE
awake yet ?




__________________________________________________
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/