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

Subversion Repositories idea

[/] [idea/] [trunk/] [structural_c/] [idea_machine/] [xor16.c] - Rev 7

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

/* File Name     : xor16.c					 */
/* Description   : The 16-bit xor 		 	         */
/* Purpose	 : To be used by GENLIB				 */
/* Date 	 : Aug 23, 2001					 */
/* Version 	 : 1.1						 */
/* Author 	 : Martadinata A.				 */
/* Address       : VLSI RG, Dept. of Electrical Engineering ITB, */
/*                 Bandung, Indonesia                            */
/* E-mail        : marta@ic.vlsi.itb.ac.id                       */
 
#include<genlib.h>
main()
{
 int i;
 DEF_LOFIG("xor16");
 LOCON("a[0:15]",     IN,  "a[0:15]"  );
 LOCON("b[0:15]",     IN,  "b[0:15]"  );
 LOCON("q[0:15]",    OUT,  "q[0:15]"  );
 LOCON("vdd",         IN,  "vdd"      );
 LOCON("vss",         IN,  "vss"      );
 
 for(i=0;i<16;i++)
 LOINS("xr2_x4",NAME("xr%d",i),NAME("a[%d]",i),NAME("b[%d]",i),NAME("q[%d]",i),"vdd","vss",0);
 
 SAVE_LOFIG();
 exit(0);
}
 

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

powered by: WebSVN 2.1.0

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