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

Subversion Repositories idea

[/] [idea/] [trunk/] [structural_c/] [idea_machine/] [xor16.c] - Blame information for rev 10

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 7 marta
/* File Name     : xor16.c                                       */
2
/* Description   : The 16-bit xor                                */
3
/* Purpose       : To be used by GENLIB                          */
4
/* Date          : Aug 23, 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("xor16");
16
 LOCON("a[0:15]",     IN,  "a[0:15]"  );
17
 LOCON("b[0:15]",     IN,  "b[0:15]"  );
18
 LOCON("q[0:15]",    OUT,  "q[0:15]"  );
19
 LOCON("vdd",         IN,  "vdd"      );
20
 LOCON("vss",         IN,  "vss"      );
21
 
22
 for(i=0;i<16;i++)
23
 LOINS("xr2_x4",NAME("xr%d",i),NAME("a[%d]",i),NAME("b[%d]",i),NAME("q[%d]",i),"vdd","vss",0);
24
 
25
 SAVE_LOFIG();
26
 exit(0);
27
}

powered by: WebSVN 2.1.0

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