Monthly Archives: June 2013

AVR electronic

Implement CPU in FPGA. Core SomeAVR on verilog

In this article I try to talk about implementation part of CPU that can execute instructons subset of original AVR core. It’s only preview and can be use for academic using only. Because most useful programm that this CPU can execute is LED blinking 🙂 You can view this in following video:

Here right 8 LEDs indicate value of register R20. Left 8 LEDs – value of IP(PC). read more »

programming

Link assembly and c

I using nasm to generate object code from assembly source. 3 application required to compile executable:
– nasm
– gcc from gcc--base package (gcc-4.7-base for example)
– ld from binutils package
*package names in ubuntu distribution

To install this packages run following command:

Files contents:

And finaly: