array.vhd
来自「It is the code for implementing the proj」· VHDL 代码 · 共 31 行
VHD
31 行
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 + =
减小字号Ctrl + -
显示快捷键?