[Virgil] Atmega32 ?
Benjamin Titzer
titzer at CS.UCLA.EDU
Sun May 27 16:41:15 PDT 2007
> Hi Benjamin,
thank you. I will try to modify the ATMega128 device description. I
understand the interrupt part and the IORegister part but can you
elaborate on the first statements:
> space data[16]: 8;
> space flash[24]: 8;
> space eeprom[16]: 8;
These describe the address spaces of the device. The first number is the
number of bits required to represent a pointer, the second number is the
size of the addressable units. This information is parsed by the compiler,
but currently unused, because VPC generates C code.
> region regs = data[0...31];
> region ioregs = data[32...255];
> region sram = data[255...4351];
These describe regions of memory within address spaces. They also are
currently unused.
> region itable = flash[0...139];
> I don't know what I have to fill in to fit the ATMega32 and I didn't
> found a description in the Virgil documentation.
Just put in the numbers for the size of RAM and flash on the ATMega32
(though the numbers are currently unused). It should work without them,
but probably better to put down the right numbers if/when they are needed
later. If you'd like, you can send me your atmega32.hil file when you are
finished and I will add it to the CVS.
-B
More information about the Virgil
mailing list