Sammekevremde
New Member
Offline
Posts: 2
|
Hi i'm using cadence virtuoso and i'm trying to use a generic to determine the port width in a vhdl entity.
entity Voter is generic ( width : integer := 8 ); Port ( input1 : in STD_LOGIC_VECTOR (width-1 downto 0); input2 : in STD_LOGIC_VECTOR (width-1 downto 0); input3 : in STD_LOGIC_VECTOR (width-1 downto 0); output : out STD_LOGIC_VECTOR (width-1 downto 0)); end Voter;
when i compile this it gives me the warning.
*WARNING* (DB-270000): dbCreateNet: Input name(or member) : input<width-1:0> has improper bus syntax *Error* dbCreateTerm: argument #1 should be a database object (type template="dgtxg") - nil Error failed to create shadow database for (work voter entity).
i've tried to put brackets around the (width-1) which doens't work either.
|