ToolsTp3-2010: mx2_x2.vbe

File mx2_x2.vbe, 1.1 KB (added by franck, 14 years ago)
Line 
1ENTITY mx2_x2 IS
2GENERIC (
3  CONSTANT area          : NATURAL := 2250;
4  CONSTANT cin_cmd       : NATURAL := 17;
5  CONSTANT cin_i0        : NATURAL := 8;
6  CONSTANT cin_i1        : NATURAL := 9;
7  CONSTANT rdown_cmd_q   : NATURAL := 1620;
8  CONSTANT rdown_i0_q    : NATURAL := 1620;
9  CONSTANT rdown_i1_q    : NATURAL := 1620;
10  CONSTANT rup_cmd_q     : NATURAL := 1790;
11  CONSTANT rup_i0_q      : NATURAL := 1790;
12  CONSTANT rup_i1_q      : NATURAL := 1790;
13  CONSTANT tphh_i0_q     : NATURAL := 451;
14  CONSTANT tphh_i1_q     : NATURAL := 451;
15  CONSTANT tpll_i0_q     : NATURAL := 469;
16  CONSTANT tpll_i1_q     : NATURAL := 469;
17  CONSTANT tphh_cmd_q    : NATURAL := 484;
18  CONSTANT tphl_cmd_q    : NATURAL := 485;
19  CONSTANT tpll_cmd_q    : NATURAL := 522;
20  CONSTANT tplh_cmd_q    : NATURAL := 534;
21  CONSTANT transistors   : NATURAL := 12
22);
23PORT (
24  cmd    : in  BIT;
25  i0     : in  BIT;
26  i1     : in  BIT;
27  q      : out BIT;
28  vdd    : in  BIT;
29  vss    : in  BIT
30);
31END mx2_x2;
32
33ARCHITECTURE behaviour_data_flow OF mx2_x2 IS
34
35BEGIN
36  ASSERT ((vdd and not (vss)) = '1')
37  REPORT "power supply is missing on mx2_x2"
38  SEVERITY WARNING;
39  q <= ((i1 and cmd) or (not (cmd) and i0)) after 1100 ps;
40END;