필터 지우기
필터 지우기

Multiplier using HDL library

조회 수: 4 (최근 30일)
Safiya
Safiya 2015년 5월 12일
댓글: Stephen23 2015년 5월 28일
Hi, I want to make a multiplier of 4bit and to generate vhdl code using "HDL code generation" in simulink. for example A = [ 1 0 1 1]; B = [ 1 1 0 1];
Y= A*B ;
should give us 10001111; Thank you;
Safiya
  댓글 수: 1
Stephen23
Stephen23 2015년 5월 28일
Here is the text of the original question, just in case Safiya decides to delete the text of this question too (like this one):
Hi, I want to make a multiplier of 4bit and to generate vhdl code using "HDL code generation" in simulink. for example A = [ 1 0 1 1]; B = [ 1 1 0 1];
Y= A*B ;
should give us 10001111; Thank you;
Safiya

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

채택된 답변

Tim McBrayer
Tim McBrayer 2015년 5월 12일
Place a Product block in your design subsystem; feed it two ufix4 inputs.
Alternatively: use a MATLAB Function block that contains Y = A*B; feed it two ufix4 inputs.

추가 답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by