SlideShare a Scribd company logo
1 of 40
Revised by Juan F Proano
Verilog on Intel FPGAs
Lab 1: FPGA BOARD BASICS
SIMULATOR AND BLINK EXAMPLE
1
https://www.mojotronicsltd.co.uk/
Revised by Juan F Proano
Quartus Software Installation
2
Download link:
https://www.intel.com/content/www/us/en/programmable/downloads/download-center.html
Version: 13.0 Web edition (Free license)
Device support: Cyclone II, Cyclone IV, Cyclone V
Installer file size: Approximately 3GB
Hard Disk space required: 10GB
https://www.mojotronicsltd.co.uk/
Revised by Juan F Proano
Mojotronics Remote FPGA Access
3
1. Student Installs Teamviwer
Desktop remote access tool
and connects to Mojotronics
100 MB on user side hard drive
2. Remote connection stablished
3. Mojotronics PC runs Quartus and Simulation program controlling the FPGA
Mojotronics Server PC
4. User connected
using the FPGA
remotely
Student PC after connection
Student PC
https://www.mojotronicsltd.co.uk/
Revised by Juan F Proano
The Boards
4
Inputs Slide switches Inputs Push switches
Outputs
Simulator options
And link to support
material
https://www.mojotronicsltd.co.uk/
Physical board
Remote Interface board
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
5
B A X
Example AND GATE:
Switch A = 0
Switch B = 1
Switch A up = 1
Switch A down = 0
Switch B up = 1
Switch B down = 0
https://www.mojotronicsltd.co.uk/
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
6
https://www.mojotronicsltd.co.uk/
1 2 3
Click on New Project
Wizard
Click on Next Click on the 3 dots
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
7
https://www.mojotronicsltd.co.uk/
4
Select the documents folder
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
8
https://www.mojotronicsltd.co.uk/
5
Add FPGA/lab1 after the documents
location
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
9
https://www.mojotronicsltd.co.uk/
6
Confirm you want to create the folder
Click in Yes and then click Next
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
10
https://www.mojotronicsltd.co.uk/
7 8 9
Click in next Open the files explorer Double click on Desktop
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
11
https://www.mojotronicsltd.co.uk/
10
Open the spreadsheet
file called:
XXXX_pins
This name can change
depending on the board
Being used.
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
12
https://www.mojotronicsltd.co.uk/
11
Th file contains the FPGA family
And FPGA version
Family: Cyclone 2
FPGA: EP2C5T144C8
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
13
https://www.mojotronicsltd.co.uk/
12
Select the settings as found
in the spreadsheet and click next
(Example below please refer to
the spreadsheet document)
Family: Cyclone 2
FPGA: EP2C5T144C8
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
14
https://www.mojotronicsltd.co.uk/
13 14
Click on next Click on next
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
15
https://www.mojotronicsltd.co.uk/
15
Click on the icon for new file
Or go to File and select New
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
16
https://www.mojotronicsltd.co.uk/
16 17
Select Verilog HDL file
Type the following text. This is the basic structure of a
Verilog module. After click on Save.
Keyword: module
module name: lab1
Input and output Ports to be created: ();
Keyword to indicate the end of the module: endmodule
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
17
https://www.mojotronicsltd.co.uk/
18
Make sure that the name we created
in step 5 (in page 8) matches the
module name
And the file name. Then click on save
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
18
https://www.mojotronicsltd.co.uk/
19
Double check that the
Module name
matches the
Top level entity
And the file name
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
19
https://www.mojotronicsltd.co.uk/
20
Ports can now be declared for
our AND GATE refer to the
diagram in page 5
1 bit INPUT A
1 bit INPUT B
1 bit OUTPUT X
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
20
https://www.mojotronicsltd.co.uk/
21
We assign the operation
AND to our output.
Notice that we are using
The bitwise AND
operation.
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
21
https://www.mojotronicsltd.co.uk/
22
Compile by clicking on the play button or
by going to Porcessing/Start Compilation
then click on Yes save changes
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
22
https://www.mojotronicsltd.co.uk/
23 24
After successful compilation click OK
Click on Assignments / Pin Planner
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
23
https://www.mojotronicsltd.co.uk/
25
Bring back the spreadsheet we opened in page 11 and have it side by side with pin planner
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
24
https://www.mojotronicsltd.co.uk/
26
Copy and paste the
Inputs from the spreadsheet
On te inputs on Pin Planner
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
25
https://www.mojotronicsltd.co.uk/
27
Copy the location for
the output X and
paste it in Pin planner
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
26
https://www.mojotronicsltd.co.uk/
28
After setting up the locations
We can close Pin Planner
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
27
https://www.mojotronicsltd.co.uk/
29
Back in Quartus click on Compile
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
28
https://www.mojotronicsltd.co.uk/
30
After successful compilation
Click OK
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
29
https://www.mojotronicsltd.co.uk/
31 32
To program the FPGA click on Tools / Programmer Click on Hardware Setup so it can detect the FPGA hardware
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
30
https://www.mojotronicsltd.co.uk/
33,34 35
Select the USB blaster 0 on both locations and them close If your programming file is not shown under File like in the
Picture click Add file
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
31
https://www.mojotronicsltd.co.uk/
36 37
Make sure you are in the project location lab 1
Then select the output_files folder
Select the lab1.sof file and click Open
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
32
https://www.mojotronicsltd.co.uk/
38
lab1.sof programming file should appear under the File tab as well as the device click on Start
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
33
https://www.mojotronicsltd.co.uk/
39 40
Upload to the FPGA board is successful close the programmer Click no on the message shown after closing the programmer
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
34
https://www.mojotronicsltd.co.uk/
41 42
Minimize Quartus Minimize Pin Planner and the pins spreasheet
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
35
https://www.mojotronicsltd.co.uk/
43 44
Open Mojotronics FPGA Interface program Enter the provided password and click OK
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
36
https://www.mojotronicsltd.co.uk/
45 46
Open Mojotronics FPGA Interface program Select the Highest port available
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
37
https://www.mojotronicsltd.co.uk/
47 48
With highest port selected click OK Open the Spreadsheet and put it side by side with Mojotronics program
Revised by Juan F Proano
Lab1: Blink program (AND GATE)
38
https://www.mojotronicsltd.co.uk/
49
Input 0 and input 1 in the spreadsheet correspond to the first two slide switches o the right. The rest of the slide switches
although we are not using them correspond to the other pins in the same order.
Revised by Juan F Proano
Lab1: Blink program (AND GATE TEST)
39
https://www.mojotronicsltd.co.uk/
By clicking on the slide switches you can slide them up and down
BA
00
BA
01
BA
10
BA
11
Output X =1
Led ON
Revised by Juan F Proano
Lab1: Challenge
40
https://www.mojotronicsltd.co.uk/
I hope you enjoyed lab1 and try the following challenge
Implement all the gates in the diagram in one program.
Use different inputs for each gate. In total you should have
7 inputs and 4 outputs.

More Related Content

Similar to Lab1 introduction

Install Qt/Qt Quick for Android devices
Install Qt/Qt Quick for Android devicesInstall Qt/Qt Quick for Android devices
Install Qt/Qt Quick for Android devicesPaolo Sereno
 
Xilinx ISE introduction Tutorial #1
Xilinx ISE introduction Tutorial #1Xilinx ISE introduction Tutorial #1
Xilinx ISE introduction Tutorial #1guest1e88645e
 
Elc Europe 2020 : u-boot- porting and maintaining a bootloader for a multimed...
Elc Europe 2020 : u-boot- porting and maintaining a bootloader for a multimed...Elc Europe 2020 : u-boot- porting and maintaining a bootloader for a multimed...
Elc Europe 2020 : u-boot- porting and maintaining a bootloader for a multimed...Neil Armstrong
 
Using arduino and raspberry pi for internet of things
Using arduino and raspberry pi for internet of thingsUsing arduino and raspberry pi for internet of things
Using arduino and raspberry pi for internet of thingsSudar Muthu
 
HARD COPY REPORT CDAC
HARD COPY REPORT CDACHARD COPY REPORT CDAC
HARD COPY REPORT CDACSarthak Dubey
 
Kernel Recipes 2015 - The Dronecode Project – A step in open source drones
Kernel Recipes 2015 - The Dronecode Project – A step in open source dronesKernel Recipes 2015 - The Dronecode Project – A step in open source drones
Kernel Recipes 2015 - The Dronecode Project – A step in open source dronesAnne Nicolas
 
Developing new zynq based instruments
Developing new zynq based instrumentsDeveloping new zynq based instruments
Developing new zynq based instrumentsGraham NAYLOR
 
FlashPAK-III_Operator_Guide
FlashPAK-III_Operator_GuideFlashPAK-III_Operator_Guide
FlashPAK-III_Operator_GuideRoger A Sharp
 
FDB104 Post workflow
FDB104 Post workflowFDB104 Post workflow
FDB104 Post workflowJames Uren
 
Unit III ARM Interface and ARM Programming
Unit III ARM Interface and ARM Programming Unit III ARM Interface and ARM Programming
Unit III ARM Interface and ARM Programming Dr. Pankaj Zope
 
Profiling and optimizing go programs
Profiling and optimizing go programsProfiling and optimizing go programs
Profiling and optimizing go programsBadoo Development
 
Microcontroladores: programación con microcontrolador AVR
Microcontroladores: programación con microcontrolador AVRMicrocontroladores: programación con microcontrolador AVR
Microcontroladores: programación con microcontrolador AVRSANTIAGO PABLO ALBERTO
 
AVR Micro controller Interfacing
AVR Micro controller Interfacing AVR Micro controller Interfacing
AVR Micro controller Interfacing Raghav Shetty
 
MicroPython for LEGO Spike - introduction
MicroPython for LEGO Spike - introductionMicroPython for LEGO Spike - introduction
MicroPython for LEGO Spike - introductionsdoro58
 
install k+dcan cable standard tools 2.12 on windows 10 64bit
install k+dcan cable standard tools 2.12 on windows 10 64bitinstall k+dcan cable standard tools 2.12 on windows 10 64bit
install k+dcan cable standard tools 2.12 on windows 10 64bitWORLD OBD2
 
Lab mke1503 mee10203 02
Lab mke1503 mee10203 02Lab mke1503 mee10203 02
Lab mke1503 mee10203 02wanrizegillah
 

Similar to Lab1 introduction (20)

Install Qt/Qt Quick for Android devices
Install Qt/Qt Quick for Android devicesInstall Qt/Qt Quick for Android devices
Install Qt/Qt Quick for Android devices
 
Xilinx ISE introduction Tutorial #1
Xilinx ISE introduction Tutorial #1Xilinx ISE introduction Tutorial #1
Xilinx ISE introduction Tutorial #1
 
Elc Europe 2020 : u-boot- porting and maintaining a bootloader for a multimed...
Elc Europe 2020 : u-boot- porting and maintaining a bootloader for a multimed...Elc Europe 2020 : u-boot- porting and maintaining a bootloader for a multimed...
Elc Europe 2020 : u-boot- porting and maintaining a bootloader for a multimed...
 
Using arduino and raspberry pi for internet of things
Using arduino and raspberry pi for internet of thingsUsing arduino and raspberry pi for internet of things
Using arduino and raspberry pi for internet of things
 
HARD COPY REPORT CDAC
HARD COPY REPORT CDACHARD COPY REPORT CDAC
HARD COPY REPORT CDAC
 
Kernel Recipes 2015 - The Dronecode Project – A step in open source drones
Kernel Recipes 2015 - The Dronecode Project – A step in open source dronesKernel Recipes 2015 - The Dronecode Project – A step in open source drones
Kernel Recipes 2015 - The Dronecode Project – A step in open source drones
 
Lab (1) installation of python
Lab (1) installation of pythonLab (1) installation of python
Lab (1) installation of python
 
Developing new zynq based instruments
Developing new zynq based instrumentsDeveloping new zynq based instruments
Developing new zynq based instruments
 
FlashPAK-III_Operator_Guide
FlashPAK-III_Operator_GuideFlashPAK-III_Operator_Guide
FlashPAK-III_Operator_Guide
 
FDB104 Post workflow
FDB104 Post workflowFDB104 Post workflow
FDB104 Post workflow
 
Unit III ARM Interface and ARM Programming
Unit III ARM Interface and ARM Programming Unit III ARM Interface and ARM Programming
Unit III ARM Interface and ARM Programming
 
Profiling and optimizing go programs
Profiling and optimizing go programsProfiling and optimizing go programs
Profiling and optimizing go programs
 
lotos-framework
lotos-frameworklotos-framework
lotos-framework
 
Avr book
Avr bookAvr book
Avr book
 
Microcontroladores: programación con microcontrolador AVR
Microcontroladores: programación con microcontrolador AVRMicrocontroladores: programación con microcontrolador AVR
Microcontroladores: programación con microcontrolador AVR
 
AVR Micro controller Interfacing
AVR Micro controller Interfacing AVR Micro controller Interfacing
AVR Micro controller Interfacing
 
MicroPython for LEGO Spike - introduction
MicroPython for LEGO Spike - introductionMicroPython for LEGO Spike - introduction
MicroPython for LEGO Spike - introduction
 
install k+dcan cable standard tools 2.12 on windows 10 64bit
install k+dcan cable standard tools 2.12 on windows 10 64bitinstall k+dcan cable standard tools 2.12 on windows 10 64bit
install k+dcan cable standard tools 2.12 on windows 10 64bit
 
Lab mke1503 mee10203 02
Lab mke1503 mee10203 02Lab mke1503 mee10203 02
Lab mke1503 mee10203 02
 
D3 Troubleshooting
D3 TroubleshootingD3 Troubleshooting
D3 Troubleshooting
 

Recently uploaded

How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 

Recently uploaded (20)

How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 

Lab1 introduction

  • 1. Revised by Juan F Proano Verilog on Intel FPGAs Lab 1: FPGA BOARD BASICS SIMULATOR AND BLINK EXAMPLE 1 https://www.mojotronicsltd.co.uk/
  • 2. Revised by Juan F Proano Quartus Software Installation 2 Download link: https://www.intel.com/content/www/us/en/programmable/downloads/download-center.html Version: 13.0 Web edition (Free license) Device support: Cyclone II, Cyclone IV, Cyclone V Installer file size: Approximately 3GB Hard Disk space required: 10GB https://www.mojotronicsltd.co.uk/
  • 3. Revised by Juan F Proano Mojotronics Remote FPGA Access 3 1. Student Installs Teamviwer Desktop remote access tool and connects to Mojotronics 100 MB on user side hard drive 2. Remote connection stablished 3. Mojotronics PC runs Quartus and Simulation program controlling the FPGA Mojotronics Server PC 4. User connected using the FPGA remotely Student PC after connection Student PC https://www.mojotronicsltd.co.uk/
  • 4. Revised by Juan F Proano The Boards 4 Inputs Slide switches Inputs Push switches Outputs Simulator options And link to support material https://www.mojotronicsltd.co.uk/ Physical board Remote Interface board
  • 5. Revised by Juan F Proano Lab1: Blink program (AND GATE) 5 B A X Example AND GATE: Switch A = 0 Switch B = 1 Switch A up = 1 Switch A down = 0 Switch B up = 1 Switch B down = 0 https://www.mojotronicsltd.co.uk/
  • 6. Revised by Juan F Proano Lab1: Blink program (AND GATE) 6 https://www.mojotronicsltd.co.uk/ 1 2 3 Click on New Project Wizard Click on Next Click on the 3 dots
  • 7. Revised by Juan F Proano Lab1: Blink program (AND GATE) 7 https://www.mojotronicsltd.co.uk/ 4 Select the documents folder
  • 8. Revised by Juan F Proano Lab1: Blink program (AND GATE) 8 https://www.mojotronicsltd.co.uk/ 5 Add FPGA/lab1 after the documents location
  • 9. Revised by Juan F Proano Lab1: Blink program (AND GATE) 9 https://www.mojotronicsltd.co.uk/ 6 Confirm you want to create the folder Click in Yes and then click Next
  • 10. Revised by Juan F Proano Lab1: Blink program (AND GATE) 10 https://www.mojotronicsltd.co.uk/ 7 8 9 Click in next Open the files explorer Double click on Desktop
  • 11. Revised by Juan F Proano Lab1: Blink program (AND GATE) 11 https://www.mojotronicsltd.co.uk/ 10 Open the spreadsheet file called: XXXX_pins This name can change depending on the board Being used.
  • 12. Revised by Juan F Proano Lab1: Blink program (AND GATE) 12 https://www.mojotronicsltd.co.uk/ 11 Th file contains the FPGA family And FPGA version Family: Cyclone 2 FPGA: EP2C5T144C8
  • 13. Revised by Juan F Proano Lab1: Blink program (AND GATE) 13 https://www.mojotronicsltd.co.uk/ 12 Select the settings as found in the spreadsheet and click next (Example below please refer to the spreadsheet document) Family: Cyclone 2 FPGA: EP2C5T144C8
  • 14. Revised by Juan F Proano Lab1: Blink program (AND GATE) 14 https://www.mojotronicsltd.co.uk/ 13 14 Click on next Click on next
  • 15. Revised by Juan F Proano Lab1: Blink program (AND GATE) 15 https://www.mojotronicsltd.co.uk/ 15 Click on the icon for new file Or go to File and select New
  • 16. Revised by Juan F Proano Lab1: Blink program (AND GATE) 16 https://www.mojotronicsltd.co.uk/ 16 17 Select Verilog HDL file Type the following text. This is the basic structure of a Verilog module. After click on Save. Keyword: module module name: lab1 Input and output Ports to be created: (); Keyword to indicate the end of the module: endmodule
  • 17. Revised by Juan F Proano Lab1: Blink program (AND GATE) 17 https://www.mojotronicsltd.co.uk/ 18 Make sure that the name we created in step 5 (in page 8) matches the module name And the file name. Then click on save
  • 18. Revised by Juan F Proano Lab1: Blink program (AND GATE) 18 https://www.mojotronicsltd.co.uk/ 19 Double check that the Module name matches the Top level entity And the file name
  • 19. Revised by Juan F Proano Lab1: Blink program (AND GATE) 19 https://www.mojotronicsltd.co.uk/ 20 Ports can now be declared for our AND GATE refer to the diagram in page 5 1 bit INPUT A 1 bit INPUT B 1 bit OUTPUT X
  • 20. Revised by Juan F Proano Lab1: Blink program (AND GATE) 20 https://www.mojotronicsltd.co.uk/ 21 We assign the operation AND to our output. Notice that we are using The bitwise AND operation.
  • 21. Revised by Juan F Proano Lab1: Blink program (AND GATE) 21 https://www.mojotronicsltd.co.uk/ 22 Compile by clicking on the play button or by going to Porcessing/Start Compilation then click on Yes save changes
  • 22. Revised by Juan F Proano Lab1: Blink program (AND GATE) 22 https://www.mojotronicsltd.co.uk/ 23 24 After successful compilation click OK Click on Assignments / Pin Planner
  • 23. Revised by Juan F Proano Lab1: Blink program (AND GATE) 23 https://www.mojotronicsltd.co.uk/ 25 Bring back the spreadsheet we opened in page 11 and have it side by side with pin planner
  • 24. Revised by Juan F Proano Lab1: Blink program (AND GATE) 24 https://www.mojotronicsltd.co.uk/ 26 Copy and paste the Inputs from the spreadsheet On te inputs on Pin Planner
  • 25. Revised by Juan F Proano Lab1: Blink program (AND GATE) 25 https://www.mojotronicsltd.co.uk/ 27 Copy the location for the output X and paste it in Pin planner
  • 26. Revised by Juan F Proano Lab1: Blink program (AND GATE) 26 https://www.mojotronicsltd.co.uk/ 28 After setting up the locations We can close Pin Planner
  • 27. Revised by Juan F Proano Lab1: Blink program (AND GATE) 27 https://www.mojotronicsltd.co.uk/ 29 Back in Quartus click on Compile
  • 28. Revised by Juan F Proano Lab1: Blink program (AND GATE) 28 https://www.mojotronicsltd.co.uk/ 30 After successful compilation Click OK
  • 29. Revised by Juan F Proano Lab1: Blink program (AND GATE) 29 https://www.mojotronicsltd.co.uk/ 31 32 To program the FPGA click on Tools / Programmer Click on Hardware Setup so it can detect the FPGA hardware
  • 30. Revised by Juan F Proano Lab1: Blink program (AND GATE) 30 https://www.mojotronicsltd.co.uk/ 33,34 35 Select the USB blaster 0 on both locations and them close If your programming file is not shown under File like in the Picture click Add file
  • 31. Revised by Juan F Proano Lab1: Blink program (AND GATE) 31 https://www.mojotronicsltd.co.uk/ 36 37 Make sure you are in the project location lab 1 Then select the output_files folder Select the lab1.sof file and click Open
  • 32. Revised by Juan F Proano Lab1: Blink program (AND GATE) 32 https://www.mojotronicsltd.co.uk/ 38 lab1.sof programming file should appear under the File tab as well as the device click on Start
  • 33. Revised by Juan F Proano Lab1: Blink program (AND GATE) 33 https://www.mojotronicsltd.co.uk/ 39 40 Upload to the FPGA board is successful close the programmer Click no on the message shown after closing the programmer
  • 34. Revised by Juan F Proano Lab1: Blink program (AND GATE) 34 https://www.mojotronicsltd.co.uk/ 41 42 Minimize Quartus Minimize Pin Planner and the pins spreasheet
  • 35. Revised by Juan F Proano Lab1: Blink program (AND GATE) 35 https://www.mojotronicsltd.co.uk/ 43 44 Open Mojotronics FPGA Interface program Enter the provided password and click OK
  • 36. Revised by Juan F Proano Lab1: Blink program (AND GATE) 36 https://www.mojotronicsltd.co.uk/ 45 46 Open Mojotronics FPGA Interface program Select the Highest port available
  • 37. Revised by Juan F Proano Lab1: Blink program (AND GATE) 37 https://www.mojotronicsltd.co.uk/ 47 48 With highest port selected click OK Open the Spreadsheet and put it side by side with Mojotronics program
  • 38. Revised by Juan F Proano Lab1: Blink program (AND GATE) 38 https://www.mojotronicsltd.co.uk/ 49 Input 0 and input 1 in the spreadsheet correspond to the first two slide switches o the right. The rest of the slide switches although we are not using them correspond to the other pins in the same order.
  • 39. Revised by Juan F Proano Lab1: Blink program (AND GATE TEST) 39 https://www.mojotronicsltd.co.uk/ By clicking on the slide switches you can slide them up and down BA 00 BA 01 BA 10 BA 11 Output X =1 Led ON
  • 40. Revised by Juan F Proano Lab1: Challenge 40 https://www.mojotronicsltd.co.uk/ I hope you enjoyed lab1 and try the following challenge Implement all the gates in the diagram in one program. Use different inputs for each gate. In total you should have 7 inputs and 4 outputs.