Title: A Guide to ALTERA Tool
1A Guide to ALTERA Tool
Silicon Micro SystemsBangalore
2Now the next slides will help you to write a VHDL
Code compile it,do Simulation.
Also you will come across Following Features of
ALTERA MAX plus II
Floorplan EditorCompilerSimulatorTiming
AnalyserProgrammer
Graphical EditorSymbol EditorText
EditorWaveform EditorText Editor
3Steps to work on Altera Max II
- Create your directory in explorer e.g.
D\SiMS - Open Max Plus II from the ICON in the Desktop
4Keep in Mind !
This is comment window
Follow the window with this colour to proceed
your design
5ALTERA Max plus II Main Tool Window
6File -gtProject-gtName
7VLSI
8Write the Project Name e.g.VLSI
9Your project VLSI is created in your specified
directory(SiMS)
10Now We will Create a Text Editor
File -gt New
11Select Text Editor file Radio Button -gt Ok
12Copy the below code to Text editor
library IEEE use IEEE.std_logic_1164.allentity
and_2 iS port ( a in STD_LOGIC
b in STD_LOGIC c out STD_LOGIC
) end and_2architecture and_2_arch of and_2
is begin c lta and b end and_2_arch
13The code is copied in Text Editor
14Now we will have to save the code
File -gtSave
15Note Your Entity Name file name should be
samewith extension (.vhd)
Give the file name e.g. and_2.vhd -gt Ok
16Reserved words will be highlighted after saving
the file
17Now we will set the project to current file
File -gtProject -gtSet Project To Current File
18During compilation the design will be compiled
implemented to the default device in one execution
MAXplus -gt Compiler
19Design Flow Window
Click Start
20Error Message Window
Ok
Close the Compilation Window
21Select The waveform Editor for simulation
22waveform Editor
Now We will simulate the design using waveform
Editor
23Simulation Window
Right Click Here Select The Nodes From SNF
24Select The Nodes From SNF
25a,b are input c is output node
List -gt gt
26Ok
27File -gt Save
28File name will be Entity name by default
Ok
29We will apply the Stimulus value to the node from
the menu bar
30We will apply predefined clock to node a
31Ready For Simulation
32MAX plus -gt Simulator
33Timing Simulation by default
Start
34Your Simulation is successful
Ok
35Result of your design
Close the waveform Editor
36Floorplan Editor
Now we will see the Floorplan Editor
37View Of Your Design in Selected Device
MAX plus II Floorplan Editor
38Click on to see the Floor Plan Editor
39Floorplan View
40Floorplan View
Layout -gt Device View
41Down Loading
Now We will Down Load the program to the device
42Down Loading the code to the device
You need to connect hardware board
MAX plus II -gt Programmer
43Converting the code to symbolic Editor
Open your current VHDL Code File -gtOpen
-gtand_2.vhd -gtOk
Assign -gt Convert Absolute Assignment Format- gtOk
44Click On Start -gtOk -gt Close The Compilation
Window
45Select The Radio Button Symbol Editor file
File -gt Open -gtand_2.spm
46Symbol Editor Of Your Code
47Graphical /Schematic Editor
Follow the steps given in slides 4-9
48Choose Radio Button Graphical Editor file
49Double Click On the Page
50You will get this page
51Write the symbol name e.g. and2 -gt Ok
52You will get AND gate symbol with 2 inputs
Now we will take Buffers to connect ports of AND
gate. Write input -gt Ok
53Copy the Input Buffer paste it .Double click on
the page -gt output -gt Ok
54Now you have got all the buffers
55Now we will join the pads with the ports
F3
Click F3 to select the line type.Drag from input
pads to the port of AND gate as shown
56Completed Graphical view of AND gate
Note No .of pads no of Inputs No. of Outputs
57Save the Graphical Editor File.
File -gtSave
58Give the file name e.g. and2.gdf
59AND Gate view after saving with .gdf extension
60Give Port name (a,b,c)by double clicking on the
pad. File -gt save
61Set the the project to current file
File -gt Project -gt Set Project to Current file
62Compile the file.
Maxplus II -gt Compiler
63In the mid way of compilation of current file.
Click on Start
64File has been compiled.
After compilation click -gt OK
65You have complied the design.If you wanted to see
the VHDL code for the same .Then follow the steps
66Max plus II -gt Compiler
Interface -gt VHDL Netlist Writer
67VHDL Netlist Writer is Added
Click On Start
68You will get the VHDL Netlist generated file
and2.vho
Double Click on VHDL Netlist Writer (.vho)
69(No Transcript)
70(No Transcript)
71(No Transcript)