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

Subversion Repositories idea

[/] [idea/] [trunk/] [structural_c/] [key_regulator/] [reg16_latch.c] - Blame information for rev 9

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 7 marta
//Nama file : reg16_latch.c
2
//Deskripsi : reg 16 + latch
3
//Author    : Mas Adit
4
//Tanggal  : 27 Agustus 2001
5
 
6
#include <genlib.h>
7
 
8
main()
9
{
10
int i;
11
DEF_LOFIG ("reg16_latch");
12
 
13
LOCON ("a[15:0]", IN, "a[15:0]");
14
LOCON ("en", IN, "en");
15
LOCON ("clr", IN, "clr");
16
LOCON ("cke", IN, "cke");
17
LOCON ("b[15:0]", INOUT, "b[15:0]");
18
LOCON ("vdd", IN, "vdd");
19
LOCON ("vss", IN, "vss");
20
 
21
LOINS ("reg16", "reg1", "a[15:0]", "en", "clr", "x[15:0]", "vdd", "vss", 0);
22
for(i=0; i<16; i++)
23
{
24
LOINS ("latch", NAME("latch%d", i), NAME("x[%d]", i), "cke", NAME("b[%d]", i), "vdd", "vss", 0);
25
}
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.