产生shift 的 smybol时有如下错误,请问是什么原因? <br /><br />Error (10017): Can't create symbol for entity "shift" -- declaration for port "sel" cannot be of complex type <br /><br />--cup_lib.vhd <br /><br />LIBRARY IEEE; <br />USE IEEE.STD_LOGIC_1164.ALL; <br />USE IEEE.STD_LOGIC_ARITH.ALL; <br />PACKAGE cpu_lib IS <br />type t_shift is (shftpass,shtl,shtr,rotl,rotr); <br />subtype bit16 is std_logic_vector (15 downto 0); <br />end cpu_lib; <br /><br />--shift.vhd <br /><br />.... <br /><br />entity shift is <br /> port ( a : in bit16; <br /> sel: in t_shift; <br /> y : out bit16 <br /> ); <br />end shift; <br /> |
|