Matlab To VHDL Code Tutorial
Matlab To VHDL Code Tutorial
Matlab to VHDL
Code Conversion
A Tutorial by:
http://appliedelectronicsengineering.blogspot.com
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.
http://appliedelectronicsengineering.blogspot.com
Step 2: Create a script file
http://appliedelectronicsengineering.blogspot.com
Step 3: Run the Test file
• Run the test file to ensure
Editor
that the function works as Run
Tab
intended
• To do this just click on the
Run button in the Editor tab
http://appliedelectronicsengineering.blogspot.com
Step 4: Select HDL Coder
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