📄 array.vhd
字号:
library IEEE;USE IEEE.STD_LOGIC_1164.ALL;use ieee.std_logic_unsigned.all;use ieee.std_logic_arith.all;entity product isport (ml,md:in std_logic_vector( 3 downto 0); result:out std_logic_vector(7 downto 0));end product;architecture product of product isbegin process(ml) variable t,d:std_logic_vector(7 downto 0); begind:="00000000";t:="00000000"; while t < md loop d:=d + ml; t:=t+'1'; end loop; result<=d; end process; end product;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -