S-Function with Separate C Code and VHDL generation

조회 수: 3 (최근 30일)
Jerediah
Jerediah 2012년 6월 18일
I'm attempting to generate an s-function block that can generate (and connect to other components) VHDL code or C code depending on its placement and how I select components for code generation. It looks like this is possible with C but I am having trouble finding resources for VHDL generation. Any help would be greatly appreciated.

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2012년 6월 18일
I don't think HDL code generation is supported for S-functions, but you might be able to get around it by wrapping the S-function with a subsystem that is defined as a Black Box Implementation.
  댓글 수: 2
Jerediah
Jerediah 2012년 6월 27일
Kaustubha, that's exactly what I'm looking for. To expand upon this, is it possible to associate code with the same block?
Kaustubha Govind
Kaustubha Govind 2012년 6월 27일
Do you mean that you have your own HDL implementation for the block? If yes, I believe that's exactly what the Black Box implementation let's you do - associate your own HDL implementation with a subsystem.

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

카테고리

Help CenterFile Exchange에서 HDL Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by