HDL Coder doesn't create input for clock signal

조회 수: 2 (최근 30일)
Mehrdad
Mehrdad 2019년 6월 12일
댓글: Mehrdad 2019년 6월 14일
Hi
i'm using Matlab HDL Coder to create a vhdl code from my matlab code. it works but it doesn't create inputs for clock & reset signals. can anybody help?

답변 (1개)

Bharath Venkataraman
Bharath Venkataraman 2019년 6월 13일
Does your MATLAB code have states? You need to have some state in the MATLAB code to have resets and clocks.
This is an example of how to geenrate HDL code from MATLAB. You may also want to try to create a Simulink model and geenrate HDL code from that model.
  댓글 수: 1
Mehrdad
Mehrdad 2019년 6월 14일
Thank you for answering. i don't know what you mean from states here. but i expected that it will use clock signal for any code because usually all digital circuit works with a clock signal.
and also i didn't know that using simulink model that does the same work may results different. I'll try it. thank you so much!

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by