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

Subversion Repositories simple_fm_receiver

[/] [simple_fm_receiver/] [trunk/] [source/] [fm_chip.c] - Blame information for rev 36

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

Line No. Rev Author Line
1 27 arif_endro
/*
2
 * $Id: fm_chip.c,v 1.1 2008-06-26 08:04:45 arif_endro Exp $
3
 */
4
 
5
#include <genlib.h>
6
 
7
int main(void)
8
{
9
int i;
10
GENLIB_DEF_LOFIG("fm_chip");
11
GENLIB_LOCON("clk",         IN, "clk");
12
GENLIB_LOCON("reset",       IN, "reset");
13
GENLIB_LOCON("fmin[7:0]",   IN, "fmin[7:0]");
14
GENLIB_LOCON("dmout[11:0]", OUT, "dmout[11:0]");
15
GENLIB_LOCON("vdde",        IN, "vdde");
16
GENLIB_LOCON("vddi",        IN, "vddi");
17
GENLIB_LOCON("vsse",        IN, "vsse");
18
GENLIB_LOCON("vssi",        IN, "vssi");
19
 
20
GENLIB_LOINS("fm", "core", "clock", "rsti", "fmini[7:0]", "dmouti[11:0]", "vddi", "vssi", 0);
21
GENLIB_LOINS("pck_sp", "pclock", "clk", "clki", "vdde", "vddi", "vsse", "vssi", 0);
22
GENLIB_LOINS("pi_sp", "preset", "reset", "rsti", "clki", "vdde", "vddi", "vsse", "vssi", 0);
23
 
24
for(i = 7; i >= 0; i--)  GENLIB_LOINS("pi_sp", GENLIB_NAME("pfmin%d", i), GENLIB_ELM("fmin", i), GENLIB_ELM("fmini", i), "clki", "vdde", "vddi", "vsse", "vssi", 0);
25
for(i = 11; i >= 0; i--) GENLIB_LOINS("po_sp", GENLIB_NAME("pdmout%d", i), GENLIB_ELM("dmouti", i), GENLIB_ELM("dmout", i), "clki", "vdde", "vddi", "vsse", "vssi", 0);
26
 
27
GENLIB_LOINS("pvddeck_sp", "pvdde", "clock", "clki", "vdde", "vddi", "vsse", "vssi", 0);
28
GENLIB_LOINS("pvsseck_sp", "pvsse", "clock", "clki", "vdde", "vddi", "vsse", "vssi", 0);
29
GENLIB_LOINS("pvddick_sp", "pvddi", "clock", "clki", "vdde", "vddi", "vsse", "vssi", 0);
30
GENLIB_LOINS("pvssick_sp", "pvssi", "clock", "clki", "vdde", "vddi", "vsse", "vssi", 0);
31
GENLIB_SAVE_LOFIG();
32
exit(0);
33
}

powered by: WebSVN 2.1.0

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