3_mul.vhd

来自「vhdl编程100例,有需要的就下吧」· VHDL 代码 · 共 20 行

VHD
20
字号
entity mul is
   port ( 
	  in1  : bit_vector;
	  in2  : bit_vector;
	  cntl : bit;
	  pout : out bit_vector
   );
end mul;  

architecture func of mul is
begin
   process(cntl)
   begin
	  if (cntl = '1') then
		 pout <= in1*in2;
      end if;
   end process;
end  func;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?