SlideShare a Scribd company logo
1 of 31
Download to read offline
Matlab to VHDL
Code Conversion
A Tutorial by:
http://appliedelectronicsengineering.blogspot.com
VHDL
Introduction
In this tutorial we show how a to write a
Matlab function code and covert it to a VHDL
code. We will write a simple multiplexer
code for the purpose of illustration.
Send Feedback to:
http://appliedelectronicsengineering.blogspot.com
• Create a new Project in Matlab
and create a Function File
named mux_func(a,b,sel)
• Save the function file with name
mux_func.m
Step1: Create a Function File
http://appliedelectronicsengineering.blogspot.com
• Create another script file enter
the code as shown
• Save the script file with some
name like test.m
• This script file is used to test the
function mux_func that was
created earlier
Step 2: Create a script file
http://appliedelectronicsengineering.blogspot.com
• Run the test file to ensure
that the function works as
intended
• To do this just click on the
Run button in the Editor tab
Step 3: Run the Test file
Run
Editor
Tab
http://appliedelectronicsengineering.blogspot.com
Select the APPS tab and click on the HDL Coder
Step 4: Select HDL Coder
Step 5: Specify Project Name to your
HDL Code Project
Once you click the HDL coder in step 4 a window will pop up just like the
one below where you can specify a project name for you HDL coder
project with the name of your choosing. In this case mux_hdl was given
as project name
Step 6: Select File to Convert
The HDL Coder screen will open as shown
http://appliedelectronicsengineering.blogspot.com
Browse for the Files
Click here to Add
MATLAB function
Add the function file
mux_func to convert
Browse and select the mux_func function file
Click on
WorkFlow
Advisor
Similarly add the test.m file
Step 7: Convert matlab function to HDL using
Workflow Advisor
Matlab to vhdl
Matlab to vhdl
Matlab to vhdl
Matlab to vhdl
Matlab to vhdl
Matlab to vhdl
Matlab to vhdl
Matlab to vhdl
Matlab to vhdl
Matlab to vhdl
Matlab to vhdl
Matlab to vhdl
Matlab to vhdl
Matlab to vhdl
Matlab to vhdl
Matlab to vhdl
Matlab to vhdl
Matlab to vhdl

More Related Content

What's hot

Phase Locked Loop (PLL)
Phase Locked Loop (PLL)Phase Locked Loop (PLL)
Phase Locked Loop (PLL)Debayon Saha
 
Linear prediction
Linear predictionLinear prediction
Linear predictionUma Rajaram
 
Decimation and Interpolation
Decimation and InterpolationDecimation and Interpolation
Decimation and InterpolationFernando Ojeda
 
Digital communication
Digital communicationDigital communication
Digital communicationmeashi
 
M ary psk modulation
M ary psk modulationM ary psk modulation
M ary psk modulationAhmed Diaa
 
Frequency-Shift Keying
Frequency-Shift KeyingFrequency-Shift Keying
Frequency-Shift KeyingJessie Rama
 
Determine Planck constant using the photoelectric effect.
Determine Planck constant using the photoelectric effect.Determine Planck constant using the photoelectric effect.
Determine Planck constant using the photoelectric effect.UCP
 
Linear Convolution using Matlab Code
Linear Convolution  using Matlab CodeLinear Convolution  using Matlab Code
Linear Convolution using Matlab CodeBharti Airtel Ltd.
 
Pulse code modulation and Demodulation
Pulse code modulation and DemodulationPulse code modulation and Demodulation
Pulse code modulation and DemodulationAbdul Razaq
 
Eecb351 exp 8 ask fsk
Eecb351 exp 8 ask fskEecb351 exp 8 ask fsk
Eecb351 exp 8 ask fskZufayri Chan
 
Optical Source - Light Emitting Diodes
Optical Source - Light Emitting DiodesOptical Source - Light Emitting Diodes
Optical Source - Light Emitting DiodesFatiha Akma
 
state diagrams of flip flops
 state diagrams of flip flops state diagrams of flip flops
state diagrams of flip flopsUnsa Shakir
 

What's hot (20)

error control coding
error control coding error control coding
error control coding
 
Pll ppt
Pll pptPll ppt
Pll ppt
 
Phase Locked Loop (PLL)
Phase Locked Loop (PLL)Phase Locked Loop (PLL)
Phase Locked Loop (PLL)
 
Linear prediction
Linear predictionLinear prediction
Linear prediction
 
Pcm
PcmPcm
Pcm
 
Decimation and Interpolation
Decimation and InterpolationDecimation and Interpolation
Decimation and Interpolation
 
Digital communication
Digital communicationDigital communication
Digital communication
 
Source coding
Source coding Source coding
Source coding
 
M ary psk modulation
M ary psk modulationM ary psk modulation
M ary psk modulation
 
Ditial to Analog Converter
Ditial to Analog ConverterDitial to Analog Converter
Ditial to Analog Converter
 
Frequency-Shift Keying
Frequency-Shift KeyingFrequency-Shift Keying
Frequency-Shift Keying
 
Determine Planck constant using the photoelectric effect.
Determine Planck constant using the photoelectric effect.Determine Planck constant using the photoelectric effect.
Determine Planck constant using the photoelectric effect.
 
Linear Convolution using Matlab Code
Linear Convolution  using Matlab CodeLinear Convolution  using Matlab Code
Linear Convolution using Matlab Code
 
Pulse code modulation and Demodulation
Pulse code modulation and DemodulationPulse code modulation and Demodulation
Pulse code modulation and Demodulation
 
Shannon Fano
Shannon FanoShannon Fano
Shannon Fano
 
Eecb351 exp 8 ask fsk
Eecb351 exp 8 ask fskEecb351 exp 8 ask fsk
Eecb351 exp 8 ask fsk
 
Tuned amplifiers
Tuned amplifiersTuned amplifiers
Tuned amplifiers
 
Optical Source - Light Emitting Diodes
Optical Source - Light Emitting DiodesOptical Source - Light Emitting Diodes
Optical Source - Light Emitting Diodes
 
Cro basics
Cro  basicsCro  basics
Cro basics
 
state diagrams of flip flops
 state diagrams of flip flops state diagrams of flip flops
state diagrams of flip flops
 

Viewers also liked

TRAFFIC CODE MATLAB Function varargouttraffic code
TRAFFIC CODE MATLAB Function varargouttraffic codeTRAFFIC CODE MATLAB Function varargouttraffic code
TRAFFIC CODE MATLAB Function varargouttraffic codeYograj Ghodekar
 
Dba matlab code
Dba matlab codeDba matlab code
Dba matlab codebooterboot
 
Sistema cardiovascular by Danusa Menegaz
Sistema cardiovascular by Danusa MenegazSistema cardiovascular by Danusa Menegaz
Sistema cardiovascular by Danusa MenegazDanusa Menegaz
 
QPatch By Sophion
QPatch By SophionQPatch By Sophion
QPatch By Sophionchrismathes
 
Putting Learners First (Revised and Updated 10/22/15)
Putting Learners First (Revised and Updated 10/22/15)Putting Learners First (Revised and Updated 10/22/15)
Putting Learners First (Revised and Updated 10/22/15)David Blake
 
Pca matlab code_matlab_central
Pca matlab code_matlab_centralPca matlab code_matlab_central
Pca matlab code_matlab_centraldkkamat
 
Matlab code of chapter 4
Matlab code of chapter 4Matlab code of chapter 4
Matlab code of chapter 4Mohamed El Kiki
 
Matlab code of chapter 4
Matlab code of chapter 4Matlab code of chapter 4
Matlab code of chapter 4Abdo Khalaf
 
Code matlab mô phỏng dung lượng kênh truy ền reyleght trong kĩ thuật mimo
Code matlab mô phỏng dung lượng kênh truy ền reyleght trong kĩ thuật mimoCode matlab mô phỏng dung lượng kênh truy ền reyleght trong kĩ thuật mimo
Code matlab mô phỏng dung lượng kênh truy ền reyleght trong kĩ thuật mimoPTIT HCM
 
Bioelectric Communication Between Neurons
Bioelectric Communication Between NeuronsBioelectric Communication Between Neurons
Bioelectric Communication Between NeuronsLuís Rita
 
Understanding and Developing Web Services - For DBAs and Developers (whitepaper)
Understanding and Developing Web Services - For DBAs and Developers (whitepaper)Understanding and Developing Web Services - For DBAs and Developers (whitepaper)
Understanding and Developing Web Services - For DBAs and Developers (whitepaper)Revelation Technologies
 
Patch-Clamp by Menegaz Danusa Ph.D
Patch-Clamp by Menegaz Danusa Ph.DPatch-Clamp by Menegaz Danusa Ph.D
Patch-Clamp by Menegaz Danusa Ph.DDanusa Menegaz
 
Satellite link-budget-analysis-matlab-code
Satellite link-budget-analysis-matlab-codeSatellite link-budget-analysis-matlab-code
Satellite link-budget-analysis-matlab-codevijaya selvan sundaram
 
IGARSS2011_SWOT_mesoscale_morrow.ppt
IGARSS2011_SWOT_mesoscale_morrow.pptIGARSS2011_SWOT_mesoscale_morrow.ppt
IGARSS2011_SWOT_mesoscale_morrow.pptgrssieee
 
Matlab code for comparing two microphone files
Matlab code for comparing two microphone filesMatlab code for comparing two microphone files
Matlab code for comparing two microphone filesMinh Anh Nguyen
 
Basics of edge detection and forier transform
Basics of edge detection and forier transformBasics of edge detection and forier transform
Basics of edge detection and forier transformSimranjit Singh
 

Viewers also liked (20)

TRAFFIC CODE MATLAB Function varargouttraffic code
TRAFFIC CODE MATLAB Function varargouttraffic codeTRAFFIC CODE MATLAB Function varargouttraffic code
TRAFFIC CODE MATLAB Function varargouttraffic code
 
Dba matlab code
Dba matlab codeDba matlab code
Dba matlab code
 
Sistema cardiovascular by Danusa Menegaz
Sistema cardiovascular by Danusa MenegazSistema cardiovascular by Danusa Menegaz
Sistema cardiovascular by Danusa Menegaz
 
QPatch By Sophion
QPatch By SophionQPatch By Sophion
QPatch By Sophion
 
Putting Learners First (Revised and Updated 10/22/15)
Putting Learners First (Revised and Updated 10/22/15)Putting Learners First (Revised and Updated 10/22/15)
Putting Learners First (Revised and Updated 10/22/15)
 
Matlab code for secant method
Matlab code for secant methodMatlab code for secant method
Matlab code for secant method
 
Pca matlab code_matlab_central
Pca matlab code_matlab_centralPca matlab code_matlab_central
Pca matlab code_matlab_central
 
Matlab code of chapter 4
Matlab code of chapter 4Matlab code of chapter 4
Matlab code of chapter 4
 
Matlab code of chapter 4
Matlab code of chapter 4Matlab code of chapter 4
Matlab code of chapter 4
 
Code matlab mô phỏng dung lượng kênh truy ền reyleght trong kĩ thuật mimo
Code matlab mô phỏng dung lượng kênh truy ền reyleght trong kĩ thuật mimoCode matlab mô phỏng dung lượng kênh truy ền reyleght trong kĩ thuật mimo
Code matlab mô phỏng dung lượng kênh truy ền reyleght trong kĩ thuật mimo
 
Bioelectric Communication Between Neurons
Bioelectric Communication Between NeuronsBioelectric Communication Between Neurons
Bioelectric Communication Between Neurons
 
Matlab code for crout method
Matlab code for crout methodMatlab code for crout method
Matlab code for crout method
 
DFT and IDFT Matlab Code
DFT and IDFT Matlab CodeDFT and IDFT Matlab Code
DFT and IDFT Matlab Code
 
Understanding and Developing Web Services - For DBAs and Developers (whitepaper)
Understanding and Developing Web Services - For DBAs and Developers (whitepaper)Understanding and Developing Web Services - For DBAs and Developers (whitepaper)
Understanding and Developing Web Services - For DBAs and Developers (whitepaper)
 
Patch-Clamp by Menegaz Danusa Ph.D
Patch-Clamp by Menegaz Danusa Ph.DPatch-Clamp by Menegaz Danusa Ph.D
Patch-Clamp by Menegaz Danusa Ph.D
 
Satellite link-budget-analysis-matlab-code
Satellite link-budget-analysis-matlab-codeSatellite link-budget-analysis-matlab-code
Satellite link-budget-analysis-matlab-code
 
IGARSS2011_SWOT_mesoscale_morrow.ppt
IGARSS2011_SWOT_mesoscale_morrow.pptIGARSS2011_SWOT_mesoscale_morrow.ppt
IGARSS2011_SWOT_mesoscale_morrow.ppt
 
Modulation techniques matlab_code
Modulation techniques matlab_codeModulation techniques matlab_code
Modulation techniques matlab_code
 
Matlab code for comparing two microphone files
Matlab code for comparing two microphone filesMatlab code for comparing two microphone files
Matlab code for comparing two microphone files
 
Basics of edge detection and forier transform
Basics of edge detection and forier transformBasics of edge detection and forier transform
Basics of edge detection and forier transform
 

Similar to Matlab to vhdl

Selenium Training in Chennai Demo Part-2
Selenium Training in Chennai Demo Part-2 Selenium Training in Chennai Demo Part-2
Selenium Training in Chennai Demo Part-2 Thecreating Experts
 
Integrate matlab application into python
Integrate matlab application into pythonIntegrate matlab application into python
Integrate matlab application into pythonMahammad Haneef
 
PVS-Studio in the Clouds: Azure DevOps
PVS-Studio in the Clouds: Azure DevOpsPVS-Studio in the Clouds: Azure DevOps
PVS-Studio in the Clouds: Azure DevOpsAndrey Karpov
 
.NET Portfolio
.NET Portfolio.NET Portfolio
.NET Portfoliomwillmer
 
Writing your own WordPress themes and plugins
Writing your own WordPress themes and pluginsWriting your own WordPress themes and plugins
Writing your own WordPress themes and pluginsStephanie Wells
 
Web technology practical list
Web technology practical listWeb technology practical list
Web technology practical listdesaipratu10
 
Workshop: Creating your first WordPress plugin
Workshop: Creating your first WordPress pluginWorkshop: Creating your first WordPress plugin
Workshop: Creating your first WordPress pluginylefebvre
 
Tutorial_Python1.pdf
Tutorial_Python1.pdfTutorial_Python1.pdf
Tutorial_Python1.pdfMuzamilFaiz
 
Model View Presenter (MVP) In Aspnet
Model View Presenter (MVP) In AspnetModel View Presenter (MVP) In Aspnet
Model View Presenter (MVP) In Aspnetrainynovember12
 
2-Vb.net Basic Concepts and structure of .net code.pptx
2-Vb.net Basic Concepts and structure of .net code.pptx2-Vb.net Basic Concepts and structure of .net code.pptx
2-Vb.net Basic Concepts and structure of .net code.pptxUsama182938
 
Introduction to Behavior Driven Development
Introduction to Behavior Driven Development Introduction to Behavior Driven Development
Introduction to Behavior Driven Development Robin O'Brien
 
Angular - Chapter 3 - Components
Angular - Chapter 3 - ComponentsAngular - Chapter 3 - Components
Angular - Chapter 3 - ComponentsWebStackAcademy
 
PT1420 File Access and Visual Basic .docx
PT1420 File Access and Visual Basic                      .docxPT1420 File Access and Visual Basic                      .docx
PT1420 File Access and Visual Basic .docxamrit47
 

Similar to Matlab to vhdl (20)

Selenium Training in Chennai Demo Part-2
Selenium Training in Chennai Demo Part-2 Selenium Training in Chennai Demo Part-2
Selenium Training in Chennai Demo Part-2
 
Integrate matlab application into python
Integrate matlab application into pythonIntegrate matlab application into python
Integrate matlab application into python
 
PVS-Studio in the Clouds: Azure DevOps
PVS-Studio in the Clouds: Azure DevOpsPVS-Studio in the Clouds: Azure DevOps
PVS-Studio in the Clouds: Azure DevOps
 
.NET Portfolio
.NET Portfolio.NET Portfolio
.NET Portfolio
 
Web works hol
Web works holWeb works hol
Web works hol
 
Writing your own WordPress themes and plugins
Writing your own WordPress themes and pluginsWriting your own WordPress themes and plugins
Writing your own WordPress themes and plugins
 
Web technology practical list
Web technology practical listWeb technology practical list
Web technology practical list
 
008.module
008.module008.module
008.module
 
Les24
Les24Les24
Les24
 
It 237 it237
It 237 it237It 237 it237
It 237 it237
 
Workshop: Creating your first WordPress plugin
Workshop: Creating your first WordPress pluginWorkshop: Creating your first WordPress plugin
Workshop: Creating your first WordPress plugin
 
Tutorial_Python1.pdf
Tutorial_Python1.pdfTutorial_Python1.pdf
Tutorial_Python1.pdf
 
Model View Presenter (MVP) In Aspnet
Model View Presenter (MVP) In AspnetModel View Presenter (MVP) In Aspnet
Model View Presenter (MVP) In Aspnet
 
os-php-wiki5-a4
os-php-wiki5-a4os-php-wiki5-a4
os-php-wiki5-a4
 
os-php-wiki5-a4
os-php-wiki5-a4os-php-wiki5-a4
os-php-wiki5-a4
 
2-Vb.net Basic Concepts and structure of .net code.pptx
2-Vb.net Basic Concepts and structure of .net code.pptx2-Vb.net Basic Concepts and structure of .net code.pptx
2-Vb.net Basic Concepts and structure of .net code.pptx
 
Introduction to Behavior Driven Development
Introduction to Behavior Driven Development Introduction to Behavior Driven Development
Introduction to Behavior Driven Development
 
ASP DOT NET
ASP DOT NETASP DOT NET
ASP DOT NET
 
Angular - Chapter 3 - Components
Angular - Chapter 3 - ComponentsAngular - Chapter 3 - Components
Angular - Chapter 3 - Components
 
PT1420 File Access and Visual Basic .docx
PT1420 File Access and Visual Basic                      .docxPT1420 File Access and Visual Basic                      .docx
PT1420 File Access and Visual Basic .docx
 

Recently uploaded

Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncssuser2ae721
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleAlluxio, Inc.
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...121011101441
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 

Recently uploaded (20)

Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at Scale
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 

Matlab to vhdl

  • 1. Matlab to VHDL Code Conversion A Tutorial by: http://appliedelectronicsengineering.blogspot.com VHDL
  • 2. Introduction In this tutorial we show how a to write a Matlab function code and covert it to a VHDL code. We will write a simple multiplexer code for the purpose of illustration. Send Feedback to: http://appliedelectronicsengineering.blogspot.com
  • 3. • Create a new Project in Matlab and create a Function File named mux_func(a,b,sel) • Save the function file with name mux_func.m Step1: Create a Function File http://appliedelectronicsengineering.blogspot.com
  • 4. • Create another script file enter the code as shown • Save the script file with some name like test.m • This script file is used to test the function mux_func that was created earlier Step 2: Create a script file http://appliedelectronicsengineering.blogspot.com
  • 5. • Run the test file to ensure that the function works as intended • To do this just click on the Run button in the Editor tab Step 3: Run the Test file Run Editor Tab http://appliedelectronicsengineering.blogspot.com
  • 6. Select the APPS tab and click on the HDL Coder Step 4: Select HDL Coder
  • 7. Step 5: Specify Project Name to your HDL Code Project Once you click the HDL coder in step 4 a window will pop up just like the one below where you can specify a project name for you HDL coder project with the name of your choosing. In this case mux_hdl was given as project name
  • 8. Step 6: Select File to Convert The HDL Coder screen will open as shown http://appliedelectronicsengineering.blogspot.com
  • 9. Browse for the Files Click here to Add MATLAB function Add the function file mux_func to convert
  • 10. Browse and select the mux_func function file
  • 12. Similarly add the test.m file
  • 13. Step 7: Convert matlab function to HDL using Workflow Advisor