Using System Designer
FPSLIC STK594 User Guide 4-7
2819AFPSLI07/02
4.5 Assembling theMicrocontrollerSource Code
The Atmel AVR Assembler translates assembly source code into object code. The gen-
erated objectcode can then be used as an input to asimulator, emulator such as the
Atmel AVR JTAG In-Circuit Emulato r(I CE), or used to program the target device. The
Assembler generates fixed code allocations, therefore no linking is necessary.
1. Press the
SW Compiler
button to open the Atmel AVR Assembler.
2. Go to the
File
menu and choose
Open
.
3. Browse to the C:\SystemDesigner\Designs\STK594 directory and select
STK594.ASM.
4. Press
Assemble
and close the Atmel AVR Assembler if assembly was
successful.
Note:
If assembly was not successful, make sure the include file AT94KDEF.INC is in
the design directory.
For design entry using assembly language, consult the AT94K datasheet for a summary
of instructions supportedby the FPSLIC devices. The complete AVR Instruction Set
Nomenclaturedescribes each instruction in detail and has been installed as part ofthe
System Designer Tool. The AV R Instruction Set Nomenclature and FPSLIC datash eet
can be accessed from the Help menu and choosing
Online Resources > Resources
.
4.6 Synthesizing theFPGA SourceFile
1. Synthesis translates the VHDL or Verilog source code into gate-level technology-
specific file for use with the target FPGA Place and Route tool.
2. Press the SynthesisTool button. A dialog box to add VHDL files appears, see
Figure 4-11.
Figure 4-11.
Add VHDL Files Dialog Box
3. Press yes. A file selection window appears.
4. Select COUNTER.V and press
OK.
LeonardoSpectrum opens.
5. Close the
Tip of the Day
dialog if shown. Leonardo automatically selects Atmel
AT94K
as the
Technology
and lists COUNTER.V under
Input
. Leonardo®also lists
COUNTER.EDF under Output.
6. Press
Run Flow
. Figure 4-12 showsa successful synthesis.