gnetlist
|
#include <stdio.h>
#include <math.h>
Go to the source code of this file.
Data Structures | |
struct | Table |
Defines | |
#define | BLACK 0 |
#define | WHITE 1 |
#define | RED 2 |
#define | GREEN 3 |
#define | BLUE 4 |
#define | YELLOW 5 |
#define | CYAN 6 |
#define | GREY 7 |
Functions | |
int | GetStringDisplayLength (char *str, int font_size) |
int | MakeSymbol (FILE *fp, unsigned int pins, int inputBubbles, int outputBubbles, int(*body)(FILE *, int, int, unsigned int, unsigned int)) |
int | AndBody (FILE *fp, int x, int y, unsigned int pins, unsigned int colour) |
int | OrBody (FILE *fp, int x, int y, unsigned int pins, unsigned int colour) |
int | XorBody (FILE *fp, int x, int y, unsigned int pins, unsigned int colour) |
int | Pin (FILE *fp, int x1, int y1, int x2, int y2, int bubble) |
int | PinAttribute (FILE *fp, int x, int y, unsigned int n, char *value) |
int | WidenBody (FILE *fp, int x, int y, unsigned int pins, unsigned int colour) |
int | main (int argc, char **argv) |
Variables | |
unsigned int | PinSpacing = 200 |
unsigned int | PinLength = 300 |
struct Table | generate [] |
unsigned int | nGenerate = sizeof(generate)/sizeof(struct Table) |
#define BLACK 0 |
Definition at line 41 of file mk_verilog_syms.c.
#define WHITE 1 |
Definition at line 42 of file mk_verilog_syms.c.
#define RED 2 |
Definition at line 43 of file mk_verilog_syms.c.
#define GREEN 3 |
Definition at line 44 of file mk_verilog_syms.c.
#define BLUE 4 |
Definition at line 45 of file mk_verilog_syms.c.
#define YELLOW 5 |
Definition at line 46 of file mk_verilog_syms.c.
#define CYAN 6 |
Definition at line 47 of file mk_verilog_syms.c.
#define GREY 7 |
Definition at line 48 of file mk_verilog_syms.c.
int GetStringDisplayLength | ( | char * | str, |
int | font_size | ||
) |
int MakeSymbol | ( | FILE * | fp, |
unsigned int | pins, | ||
int | inputBubbles, | ||
int | outputBubbles, | ||
int(*)(FILE *, int, int, unsigned int, unsigned int) | body | ||
) |
int AndBody | ( | FILE * | fp, |
int | x, | ||
int | y, | ||
unsigned int | pins, | ||
unsigned int | colour | ||
) |
int OrBody | ( | FILE * | fp, |
int | x, | ||
int | y, | ||
unsigned int | pins, | ||
unsigned int | colour | ||
) |
int XorBody | ( | FILE * | fp, |
int | x, | ||
int | y, | ||
unsigned int | pins, | ||
unsigned int | colour | ||
) |
int Pin | ( | FILE * | fp, |
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | bubble | ||
) |
Definition at line 406 of file mk_verilog_syms.c.
int PinAttribute | ( | FILE * | fp, |
int | x, | ||
int | y, | ||
unsigned int | n, | ||
char * | value | ||
) |
Definition at line 474 of file mk_verilog_syms.c.
int WidenBody | ( | FILE * | fp, |
int | x, | ||
int | y, | ||
unsigned int | pins, | ||
unsigned int | colour | ||
) |
Definition at line 372 of file mk_verilog_syms.c.
int main | ( | int | argc, |
char ** | argv | ||
) |
unsigned int PinSpacing = 200 |
Definition at line 68 of file mk_verilog_syms.c.
unsigned int PinLength = 300 |
Definition at line 69 of file mk_verilog_syms.c.
{ {"and", 1, AndBody, 0, 0}, {"and", 2, OrBody, 1, 1}, {"nand", 1, AndBody, 0, 1}, {"nand", 2, OrBody, 1, 0}, {"or", 1, OrBody, 0, 0}, {"or", 2, AndBody, 1, 1}, {"nor", 1, OrBody, 0, 1}, {"nor", 2, AndBody, 1, 0}, {"xor", 1, XorBody, 0, 0}, {"xnor", 1, XorBody, 0, 1} }
Definition at line 81 of file mk_verilog_syms.c.
Definition at line 94 of file mk_verilog_syms.c.