我正在一个项目上工作,但无论我做什么,我都无法理解此代码的作用。由于我对VHDL不熟悉,因此我很难理解此代码的用途。这个VHDL代码是做什么的?
library iee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use work.my_package.all;
Entity multiplier is
generic (size: integer :=4);
Port (a,b : in unsigned(size-1 downto 0);
y : out unsigned(size-1 downto 0));
End multiplier ;
ARCHITECTURE behavior of multiplier is
Begin
y<= mult(a,b);
End behavior;
你也有一个包使用work.my_package.all; y <= mult(a,b)我认为** mult(a,b)**是包中的函数。 – user29875 2013-10-01 22:15:33