[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [f-cpu] F-CPU architecture...



Hi!

Bogdan Petrisor wrote:

Well the question about Harvard architecture was just a ... question. I was curious if this was
considered sometimes during the developement of the F-CPU (and yes I have read the manual at least
this one http://f-cpu.seul.org/cedric/unstable/F-CPU_manual-0.2.7c-en-color.pdf and found no
reference about it). I think it can offer a bit more performance and since I remembered that the
ELF format is already separated in data segments and instruction segments for a moment seemed a
good idea.

Well, not really. It's true that ELF files contain one or more segments, but they're not separated in code and data but in writable and read-only data (where instructions usually reside in a non-writable data segment). And even read-only segments may be written to during program loading and dynamic linking, e.g. to apply relocations.


Harvard architecture is nice for special purpose machines, DSPs and such. But you can't run a decent operating system on them - how are you going to compile and load a program if you can't write to your program memory space? Programs must be pre-installed or loaded from outside, preferably while the CPU is not running. It's a little like a BIOS update.

We will probably integrate a separate read-only "program memory" for the built-in self test (BIST) that runs after power-up - I guess that will be too hard and too costly to hard-wire. But the rest of the instruction stream will come from main memory.

--
Michael "Tired" Riepe <michael@xxxxxxxx>
X-Tired: Each morning I get up I die a little
*************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxx with
unsubscribe f-cpu       in the body. http://f-cpu.seul.org/