[Verilog HDL] 改为3位向量乘法器

[复制链接]
982|0
 楼主| 张默小 发表于 2016-12-24 20:09 | 显示全部楼层 |阅读模式
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity multip4 is
port (        a,b:in std_logic_vector(3 downto 0);
                c:out std_logic_vector(7 downto 0);
                M:out std_logic_vector(3 downto 0)
                );
end multip4;
architecture a of multip4 is
begin
M <= "0001";
c <= a*b;
end a;
您需要登录后才可以回帖 登录 | 注册

本版积分规则

4

主题

5

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部