

I have saved my Model file in D:\FPGA KAAM\st_line_demo\st_line with name str_line Save Model file in the same Folder as explained. In this case the folder is “ D:\FPGA KAAM\st_line_demo\st_line “ in our case. Important NOTE Browse & go to the folder in which we have saved our Project Save the Model file, Now one Untitled model window will get open, Once the Check Syntex is complete Open System Generator,įrom Simulink Library Browser Window click on > File > New > Model- OR- directly click on the icon I have used here Verilog code for Stright Line which is a follows,Īfter writing the whole code,double click on Check Syntex, The structure of the code will be as follows, Then Click Next> until you get the following window,Ĭlick on Verilog Module as shown below so you get your Verilog File which Looks like, I leave it blank every-time because I write them in direct code itself,both are valid. Here,we can define the Inputs and Outputs,specify their structure as if weather it is a single bit or Bus of specific bit length.

Here I am writing code in Verilg HDL,so I have selected Verilog Module and give the file name,I have given stln, Select the device you are using ,select the Preferred Language>I have used Verilog, Obesrve in screenshot that D:\FPGA KAAM\st_line_demo \st_line īy default st_line folder will get created in the destination that one has selected. Type the Create Name,I have given st_line name. I have selected path D:\FPGA KAAM\st_line_demo which is my path before creating project. Select Target Folder where you want to save your Project. For this we can use MATLAB+ISE Co-Simulation and Hardware Co-Simulation.In next post Hardware Co-Simulation will be discussed.Ĭode- Line Equation Code for Demo purposeĪfter Clicking to New Project, the following window comes The code has to be written in such a way that if the inputs are changed, according to the logic written, output should be calculated. For example here I am explaining how to write a Generalized code for Line Equation in FPGA. We use these methods for Prototype Development. If there are any alternate ways,suggestions are always welcome & it will enhance our learning process. In this Post,we will discuss step by step explanation of MATLAB+ISE Co-Simulation ,which I know and have learnt from Kalyani Bhole.
