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

Subversion Repositories idea

[/] [idea/] [trunk/] [structural_c/] [operation_mode/] [xor64.c] - Blame information for rev 7

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

Line No. Rev Author Line
1 7 marta
// File Name    : xor64.c
2
// Description  : xor 64 bit in C
3
// Author       : Sigit Dewantoro
4
// Date         : July 10th, 2001
5
 
6
#include<genlib.h>
7
 
8
main()
9
{
10
 int i;
11
 
12
 DEF_LOFIG("xor64");
13
 LOCON("a[0:63]", IN, "a[0:63]");
14
 LOCON("b[0:63]", IN, "b[0:63]");
15
// LOCON("rst", IN, "rst");
16
// LOCON("en", IN, "en");
17
 LOCON("o[0:63]", OUT, "o[0:63]");
18
 LOCON("vdd", IN, "vdd");
19
 LOCON("vss", IN, "vss");
20
 
21
 for (i=0; i<64; i++)
22
{
23
   LOINS ("xr2_x1", NAME("xor%d", i + 1), NAME("a[%d]", i), NAME("b[%d]",i), NAME("i[%d]", i), "vdd", "vss", 0);
24
 
25
   LOINS ("latch", NAME("en%d", i+1), NAME("i%d",i), "en", NAME("o%d",i),"vdd","vss",0);
26
}
27
 SAVE_LOFIG();
28
 exit(0);
29
}

powered by: WebSVN 2.1.0

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