| 1 |
2 |
arif_endro |
-- ------------------------------------------------------------------------
|
| 2 |
|
|
-- Copyright (C) 2010 Arif Endro Nugroho
|
| 3 |
|
|
-- All rights reserved.
|
| 4 |
|
|
--
|
| 5 |
|
|
-- Redistribution and use in source and binary forms, with or without
|
| 6 |
|
|
-- modification, are permitted provided that the following conditions
|
| 7 |
|
|
-- are met:
|
| 8 |
|
|
--
|
| 9 |
|
|
-- 1. Redistributions of source code must retain the above copyright
|
| 10 |
|
|
-- notice, this list of conditions and the following disclaimer.
|
| 11 |
|
|
-- 2. Redistributions in binary form must reproduce the above copyright
|
| 12 |
|
|
-- notice, this list of conditions and the following disclaimer in the
|
| 13 |
|
|
-- documentation and/or other materials provided with the distribution.
|
| 14 |
|
|
--
|
| 15 |
|
|
-- THIS SOFTWARE IS PROVIDED BY ARIF ENDRO NUGROHO "AS IS" AND ANY EXPRESS
|
| 16 |
|
|
-- OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 17 |
|
|
-- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
| 18 |
|
|
-- DISCLAIMED. IN NO EVENT SHALL ARIF ENDRO NUGROHO BE LIABLE FOR ANY
|
| 19 |
|
|
-- DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
| 20 |
|
|
-- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
| 21 |
|
|
-- OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
| 22 |
|
|
-- HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
| 23 |
|
|
-- STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
| 24 |
|
|
-- ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
| 25 |
|
|
-- POSSIBILITY OF SUCH DAMAGE.
|
| 26 |
|
|
--
|
| 27 |
|
|
-- End Of License.
|
| 28 |
|
|
-- ------------------------------------------------------------------------
|
| 29 |
|
|
|
| 30 |
|
|
library ieee;
|
| 31 |
|
|
use ieee.std_logic_1164.all;
|
| 32 |
|
|
use ieee.std_logic_unsigned.all;
|
| 33 |
|
|
|
| 34 |
|
|
entity xtime_8 is
|
| 35 |
|
|
port (
|
| 36 |
|
|
x8i : in bit_vector (07 downto 00);
|
| 37 |
|
|
x8o : out bit_vector (07 downto 00)
|
| 38 |
|
|
);
|
| 39 |
|
|
end xtime_8;
|
| 40 |
|
|
|
| 41 |
|
|
architecture phy of xtime_8 is
|
| 42 |
|
|
begin
|
| 43 |
|
|
x8o <= ( x8i(04) & ( x8i(03) xor x8i(07) ) & ( x8i(02) xor x8i(07) xor x8i(06) ) & ( x8i(01) xor x8i(06) xor x8i(05) ) & ( x8i(00) xor x8i(07) xor x8i(05) ) & ( x8i(07) xor x8i(06) ) & ( x8i(06) xor x8i(05) ) & x8i(05) );
|
| 44 |
|
|
end phy;
|