mirror of
https://github.com/cclassic/model-ghdl
synced 2024-11-24 08:45:05 +01:00
Added vlib, vmap and vdel
This commit is contained in:
parent
5969ad5848
commit
e85e7d7516
15
main.c
15
main.c
@ -8,6 +8,9 @@
|
||||
|
||||
#define PROG_VCOM 0
|
||||
#define PROG_VSIM 1
|
||||
#define PROG_VLIB 2
|
||||
#define PROG_VMAP 3
|
||||
#define PROG_VDEL 4
|
||||
#define PROG_UNKNOWN 255
|
||||
|
||||
#define K *1024
|
||||
@ -178,6 +181,9 @@ int main(int argc, char **argv)
|
||||
else if (app == PROG_VSIM) {
|
||||
return vsim(argc, argv);
|
||||
}
|
||||
else if (app == PROG_VMAP || app == PROG_VLIB || app == PROG_VDEL) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 255;
|
||||
}
|
||||
@ -192,6 +198,15 @@ int get_application(const char *call) {
|
||||
else if (strcmp(pos, "vsim") == 0) {
|
||||
return PROG_VCOM;
|
||||
}
|
||||
else if (strcmp(pos, "vlib") == 0) {
|
||||
return PROG_VLIB;
|
||||
}
|
||||
else if (strcmp(pos, "vmap") == 0) {
|
||||
return PROG_VMAP;
|
||||
}
|
||||
else if (strcmp(pos, "vdel") == 0) {
|
||||
return PROG_VDEL;
|
||||
}
|
||||
else {
|
||||
fprintf(stderr, "[E] Program not recognized: %s\n", pos);
|
||||
return PROG_UNKNOWN;
|
||||
|
Loading…
Reference in New Issue
Block a user