Multiplier using HDL library
2 次查看(过去 30 天)
显示 更早的评论
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
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
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 HDL Coder 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!