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

Subversion Repositories idea

[/] [idea/] [trunk/] [structural_c/] [idea_machine/] [reg16.c] - Blame information for rev 9

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 7 marta
/* File Name     : reg16.c                                       */
2
/* Description   : The 16-bit register                           */
3
/* Purpose       : To be used by GENLIB                          */
4
/* Date          : Aug 22, 2001                                  */
5
/* Version       : 1.1                                           */
6
/* Author        : Martadinata A.                                */
7
/* Address      :  VLSI RG, Dept. of Electrical Engineering ITB, */
8
/*                 Bandung, Indonesia                            */
9
/* E-mail       :  marta@ic.vlsi.itb.ac.id                       */
10
 
11
#include<genlib.h>
12
main()
13
{
14
 int i;
15
 DEF_LOFIG("reg16");
16
 LOCON("d[0:15]",     IN,  "d[0:15]"  );
17
 LOCON("en",          IN,  "en"       );
18
 LOCON("clr",         IN,  "clr"      );
19
 LOCON("q[0:15]",   INOUT,  "q[0:15]" );
20
 LOCON("vdd",         IN,  "vdd"      );
21
 LOCON("vss",         IN,  "vss"      );
22
 
23
 for(i=0;i<=15;i++)
24
 {
25
  LOINS("d_latch_glopf",NAME("latch%d",i),NAME("d[%d]",i),"en","clr",NAME("q[%d]",i),"vdd","vss",0);
26
 }
27
 
28
 SAVE_LOFIG();
29
 exit(0);
30
}

powered by: WebSVN 2.1.0

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