| 1 |
4 |
gajos |
-----------------------------------------------------------------------
|
| 2 |
|
|
---- ----
|
| 3 |
|
|
---- Present - a lightweight block cipher project ----
|
| 4 |
|
|
---- ----
|
| 5 |
|
|
---- This file is part of the Present - a lightweight block ----
|
| 6 |
|
|
---- cipher project ----
|
| 7 |
|
|
---- http://www.http://opencores.org/project,present ----
|
| 8 |
|
|
---- ----
|
| 9 |
|
|
---- Description: ----
|
| 10 |
|
|
---- This file contains types and constant used by this ----
|
| 11 |
|
|
---- implementation of Present project ----
|
| 12 |
|
|
---- To Do: ----
|
| 13 |
|
|
---- ----
|
| 14 |
|
|
---- Author(s): ----
|
| 15 |
|
|
---- - Krzysztof Gajewski, gajos@opencores.org ----
|
| 16 |
|
|
---- k.gajewski@gmail.com ----
|
| 17 |
|
|
---- ----
|
| 18 |
|
|
-----------------------------------------------------------------------
|
| 19 |
|
|
---- ----
|
| 20 |
|
|
---- Copyright (C) 2013 Authors and OPENCORES.ORG ----
|
| 21 |
|
|
---- ----
|
| 22 |
|
|
---- This source file may be used and distributed without ----
|
| 23 |
|
|
---- restriction provided that this copyright statement is not ----
|
| 24 |
|
|
---- removed from the file and that any derivative work contains ----
|
| 25 |
|
|
---- the original copyright notice and the associated disclaimer. ----
|
| 26 |
|
|
---- ----
|
| 27 |
|
|
---- This source file is free software; you can redistribute it ----
|
| 28 |
|
|
---- and-or modify it under the terms of the GNU Lesser General ----
|
| 29 |
|
|
---- Public License as published by the Free Software Foundation; ----
|
| 30 |
|
|
---- either version 2.1 of the License, or (at your option) any ----
|
| 31 |
|
|
---- later version. ----
|
| 32 |
|
|
---- ----
|
| 33 |
|
|
---- This source is distributed in the hope that it will be ----
|
| 34 |
|
|
---- useful, but WITHOUT ANY WARRANTY; without even the implied ----
|
| 35 |
|
|
---- warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ----
|
| 36 |
|
|
---- PURPOSE. See the GNU Lesser General Public License for more ----
|
| 37 |
|
|
---- details. ----
|
| 38 |
|
|
---- ----
|
| 39 |
|
|
---- You should have received a copy of the GNU Lesser General ----
|
| 40 |
|
|
---- Public License along with this source; if not, download it ----
|
| 41 |
|
|
---- from http://www.opencores.org/lgpl.shtml ----
|
| 42 |
|
|
---- ----
|
| 43 |
|
|
-----------------------------------------------------------------------
|
| 44 |
3 |
gajos |
-- Package File Template
|
| 45 |
|
|
--
|
| 46 |
|
|
-- Purpose: This package defines supplemental types, subtypes,
|
| 47 |
|
|
-- constants, and functions
|
| 48 |
|
|
|
| 49 |
|
|
|
| 50 |
|
|
library IEEE;
|
| 51 |
|
|
use IEEE.STD_LOGIC_1164.all;
|
| 52 |
|
|
package kody is
|
| 53 |
|
|
-- type for PresentStateMachine to control the datapath & circuit --
|
| 54 |
|
|
type stany is (NOP, SM_START, SM_READY);
|
| 55 |
|
|
type decode_states is (NOP, KG_START, DEC_START, DEC_READY);
|
| 56 |
|
|
type stany_comm is (NOP, READ_DATA_KEY, DECODE_READ_KEY, MOVE_KEY, TEMP_STATE, TEMP2_STATE, TEMP_OUT,
|
| 57 |
|
|
NOP_FOR_KEY, READ_DATA_TEXT, DECODE_READ_TEXT, MOVE_TEXT,
|
| 58 |
|
|
PRESENT_ENCODE, WRITE_OUT, MOVE_OUT);
|
| 59 |
|
|
end kody;
|