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

Subversion Repositories idea

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 7 marta
// File Name    : reg01.c
2
// Description  : Register 1 bit in C
3
// Author       : Sigit Dewantoro
4
// Date         : July 3rd, 2001
5
 
6
#include<genlib.h>
7
 
8
main()
9
{
10
 int i;
11
 
12
 DEF_LOFIG("reg01");
13
 LOCON("a", IN, "a");
14
 LOCON("rst", IN, "rst");
15
 LOCON("en", IN, "en");
16
 LOCON("c", INOUT, "c");
17
 LOCON("b", INOUT, "b");
18
 LOCON("vdd", IN, "vdd");
19
 LOCON("vss", IN, "vss");
20
 
21
 LOINS ("a2_x2", "and1", "en", "a", "a1", "vdd", "vss", 0);
22
 LOINS ("no2_x1", "nor1", "a1", "b", "c", "vdd", "vss", 0);
23
 LOINS ("inv_x1", "inv1", "a", "nota", "vdd", "vss", 0);
24
 LOINS ("a2_x2", "and2", "en", "nota" , "a2", "vdd", "vss", 0);
25
 LOINS ("no3_x1", "nor2", "a2", "c", "rst", "b", "vdd", "vss", 0);
26
 
27
 SAVE_LOFIG();
28
 exit(0);
29
}

powered by: WebSVN 2.1.0

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