error in hdl workflow advisor

조회 수: 1 (최근 30일)
mohsen salehi
mohsen salehi 2018년 1월 18일
댓글: zuyuan 2024년 2월 15일
hello i have this error hdl workflow advisor :"Error: Unhandled mixed real and complex ports for block."
  댓글 수: 1
Bharath Venkataraman
Bharath Venkataraman 2018년 1월 19일
Can you provide info on which block the report is pointing to, what its inputs are (along with data types)?

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

답변 (1개)

Walter Roberson
Walter Roberson 2018년 1월 18일
If you are expecting only real variables as input, then examine which of the ports are complex and track the value back until you figure out why the port is complex. Once you know why it is complex, you might find a coding error that you could correct. If the signal is complex for a good reason but you decide you only need the real part (or only the imag part) then use a "Complex to Real-Imag" block to split the complex signal into parts and send only the desired part to the HDL block.
If you are expecting and wanting complex inputs, then examine which of the ports are not complex and track the value back until you figure out why the port is not complex. Once you know why it is not complex, you might find a coding error that you could correct. If the signal is real only for a good reason but you decide you need it to be complex, then use a "Real-Imag to Complex" block to add a 0 complex part and send the complex signal to the HDL block.
Be careful with variables in MATLAB Function blocks that you expect to be complex, but could potentially "accidentally" happen to have an all-zero complex part. You might find that you need to insert calls to complex() to force expression to be complex-valued.
  댓글 수: 1
zuyuan
zuyuan 2024년 2월 15일
very useful answer!

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

카테고리

Help CenterFile Exchange에서 Signal Attributes and Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by