Atmel STK594 manual Assembling the Microcontroller Source Code, Fpga Source, File

Page 23

Using System Designer

4.5Assembling the Microcontroller Source Code

The Atmel AVR Assembler translates assembly source code into object code. The gen- erated object code can then be used as an input to a simulator, emulator such as the Atmel AVR JTAG In-Circuit Emulator (ICE), 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 supported by the FPSLIC devices. The complete “AVR Instruction Set Nomenclature” describes each instruction in detail and has been installed as part of the System Designer Tool. The AVR Instruction Set Nomenclature and FPSLIC datasheet can be accessed from the Help menu and choosing Online Resources > Resources.

4.6Synthesizing the 1. Synthesis translates the VHDL or Verilog source code into gate-level technology-

FPGA Source

specific file for use with the target FPGA Place and Route tool.

File

2. Press the Synthesis Tool 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 shows a successful synthesis.

FPSLIC STK594 User Guide

4-7

2819A–FPSLI–07/02

Image 23
Contents STK594 User Guide Page Table of Contents Technical Specifications STK594 Top Module for STK500 Section IntroductionFeatures Preparing the STK500 for Use with the STK594 Section Using the STK594 Top ModuleAdjusting Vtarget for the AT94K Devices Connecting the STK594 to the STK500 Starter KitPort E Port ConnectorsJtag Second RS-232C Port Tosc SwitchUniversal Asynchronous Receiver Transmitter Uart Interrupts Two-Wire Serial Interface TwsiExternal Xtal Switch Split Power Supply SupportRequirements Section Installing System DesignerSystem Licensing System Designer InstallationConfiguration Programming System CPS Installation Configuring the System Designer License Installing System Designer Description Section Using System DesignerCreating a Project Design FlowUsing System Designer Using System Designer Using System Designer Using System Designer File Assembling the Microcontroller Source CodeFpga Source Interface AVR-FPGAFpga I/O FPGA-AVR I/O RoutePlace and Route Design ConstraintsBitstream Generation Programming and Design Execution Hardware SetupUsing System Designer Select Low under A2 Bit Level Running the DesignConnections Section Technical SpecificationsSystem Unit Operating ConditionsTechnical Specifications Section Complete Schematics Complete Schematics CON52 GND AUXI0 AUXO0 AUXI1 Cclk VCC VDD Vout Schematics Complete Schematics Atmel Headquarters