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

Subversion Repositories idea

[/] [idea/] [trunk/] [structural_c/] [inout_port/] [key_in.c] - Blame information for rev 9

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 7 marta
/* File Name    : key_in.c                                       */
2
/* Description  : The key in block                               */
3
/* Purpose      : To be used by GENLIB                           */
4
/* Date         : Aug 30, 2001                                   */
5
/* Version      : 1.1                                            */
6
/* Author       : Sigit Dewantoro                                */
7
/* Address      : VLSI RG, Dept. of Electrical Engineering ITB,  */
8
/*                Bandung, Indonesia                             */
9
/* E-mail       : sigit@ic.vlsi.itb.ac.id                        */
10
 
11
#include<genlib.h>
12
main()
13
{
14
 int i;
15
 DEF_LOFIG("key_in");
16
 LOCON("inkey[31:0]",      IN,  "inkey[31:0]"   );
17
 LOCON("key_sended",         IN,  "key_sended"      );
18
 LOCON("clk",               IN,  "clk"            );
19
 LOCON("rst",               IN,  "rst"            );
20
 LOCON("req_key",           OUT,  "req_key"         );
21
 LOCON("ikey_ready",       INOUT,  "ikey_ready"       );
22
 LOCON("inkey64[127:0]",   OUT,  "inkey64[127:0]" );
23
 LOCON("vdd",               IN,  "vdd"            );
24
 LOCON("vss",               IN,  "vss"            );
25
 
26
 
27
 LOINS("dec1to4","dec12","inkey[31:0]","n_block","en_bufin","rst","inkey64_total[127:95]",
28
                        "inkey64_total[95:64]","inkey64_total[63:32]","inkey64_total[31:0]","vdd","vss",0);
29
 
30
 LOINS("in_key","ctrl_inkey","clk","rst","key_sended","en_bufin",
31
                        "req_key","ikey_ready","n_block", "vdd","vss",0);
32
 for(i=0;i<128;i++)
33
    LOINS("buf_x2",NAME("buf%d",i),NAME("inkey64_total[%d]",i),NAME("inkey64[%d]",i),
34
                   "vdd","vss",0);
35
 
36
 SAVE_LOFIG();
37
 exit(0);
38
}

powered by: WebSVN 2.1.0

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