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

Subversion Repositories idea

[/] [idea/] [trunk/] [behavioral/] [operation_mode/] [mux01.vbe] - Blame information for rev 9

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 6 marta
-- File Name    : mux01.vbe
2
-- Version      : v1.1
3
-- Description  : behavioral description of 1 bit multiplexer 4 to 1
4
-- Purpose      : to generate structural description of 1 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         : August 12th, 2001
9
 
10
entity mux01 is
11
port(
12
        a   : in bit;
13
        b   : in bit;
14
        c   : in bit;
15
        d   : in bit;
16
        sel : in bit_vector (1 downto 0);
17
        o   : out bit;
18
        vdd : in bit;
19
        vss : in bit
20
);
21
end mux01;
22
 
23
architecture vbe of mux01 is
24
 
25
begin
26
ASSERT ((vdd and not (vss)) = '1')
27
  REPORT "power supply is missing on mux01"
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
       '0' 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.