error in HDL code generation?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
hi
i want to convert my simulink file into HDL code for FPGA using HDL coder in matlab, the main error occurs at 'clock' block in simulink file and error is "Cannot find the implementation for block 'fpga/leg1/Clock1', i think there is no any equivalent HDL code for that block. i have no any alternative for that block in my mind to replace this with another logic. the whole section behaves like a reference signal (degree or timing). 50HZ (0.02ms) signal is generated and below conditions are checked for various comparisons. i have to make the wave form like shown in attached picture. i want to built three phase 7 level inverter. for that i used 36 switches(12,12,12) per phase. i have uploaded three files in zipfolder. one is waveform, second is simulink code without resistors and transistors because for HDL code, i remove all hardware related devices from the file, third is simulink code with complete circuit which work fine and gives desired response like in attached picture. kindly help me what should i do , i will be highly thankful to you
with best regards mudasir ahmed
0 comentarios
Respuestas (1)
Tim McBrayer
el 13 de En. de 2016
As you are discovering, HDL Coder is not a low-level schematic capture tool; nor does it generate HDL for analog designs.
If you need to generate a signal that is a signed integer, where the values take on discrete values at a certain point in time, you can use Stateflow to build a state machine with the desired behavior. But, I suspect that this may not be what you are looking for as your end result.
0 comentarios
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!