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

Subversion Repositories idea

[/] [idea/] [trunk/] [structural_c/] [main control/] [register64.c] - Blame information for rev 9

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 7 marta
// File Name    : register64.c
2
// Description  : Register 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("register64");
13
 LOCON("a[0:63]", IN, "a[0:63]");
14
 LOCON("rst", IN, "rst");
15
 LOCON("en", IN, "en");
16
 LOCON("b[0:63]", INOUT, "b[0:63]");
17
 LOCON("vdd", IN, "vdd");
18
 LOCON("vss", IN, "vss");
19
 
20
 for (i=0; i<64; i++)
21
   LOINS ("reg01", NAME("reg%d", i + 1), NAME("a[%d]", i), "rst", "en", NAME("b[%d]", i), "vdd", "vss", 0);
22
 
23
 SAVE_LOFIG();
24
 exit(0);
25
}

powered by: WebSVN 2.1.0

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