OpenCores
URL https://opencores.org/ocsvn/idea/idea/trunk

Subversion Repositories idea

[/] [idea/] [trunk/] [behavioral/] [main control/] [mux02.vbe] - Blame information for rev 10

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 6 marta
-- File Name    : mux02.vbe
2
-- Version      : v1.1
3
-- Description  : behavioral description of 2 bit multiplexer 4 to 1
4
-- Purpose      : to generate structural description of 2 bit multiplexer 4 to 1
5
-- Author       : Sigit Dewantoro
6
-- Address      : IS Laboratory, Labtek VIII, ITB, Jl. Ganesha 10, Bandung, Indonesia
7
-- Email        : sigit@students.ee.itb.ac.id, sigit@ic.vlsi.itb.ac.id
8
-- Date         : Agustus 12th, 2001
9
 
10
entity mux02 is
11
port(
12
        a   : in bit_vector (1 downto 0);
13
        b   : in bit_vector (1 downto 0);
14
        c   : in bit_vector (1 downto 0);
15
        d   : in bit_vector (1 downto 0);
16
        sel : in bit_vector (1 downto 0);
17
        o   : out bit_vector (1 downto 0);
18
        vdd : in bit;
19
        vss : in bit
20
);
21
end mux02;
22
 
23
architecture vbe of mux02 is
24
 
25
begin
26
ASSERT ((vdd and not (vss)) = '1')
27
  REPORT "power supply is missing on mux02"
28
  SEVERITY WARNING;
29
 
30
  with sel select
31
  o <= a when "00",
32
       b when "01",
33
       c when "10",
34
       d when "11",
35
       "00" when others;
36
 
37
end vbe;
38
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.