Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

vhdl package in altera quartus II

Status
Not open for further replies.

soloktanjung

Full Member level 6
Joined
Nov 20, 2006
Messages
364
Helped
51
Reputation
100
Reaction score
43
Trophy points
1,308
Location
nowhere
Activity points
3,194
code for a mux4 in altera

hi ,

i want to build 16 to 1 mux with 4 to 1 mux. therefore I need to create package for 4 to 1 mux.

the code is as below:

library IEEE;
use IEEE.std_logic_1164.all;

PACKAGE mux4to1_package IS

COMPONENT mux4to1 IS
PORT (x0, x1, x2, x3 : IN STD_LOGIC;
S : IN STD_LOGIC_VECTOR(1 DOWNTO 0);
f : OUT STD_LOGIC);

END COMPONENT;
END mux4to1_package;


when I compile it, I got an error.

anything wrong with the code?

hairo
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top