forked from ghdl/ghdl-cosim
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP vhpidirect: add 'quickstart/cli'
- Loading branch information
Showing
7 changed files
with
100 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include <stdio.h> | ||
|
||
int main(int argc, char** argv) { | ||
printf("fcnargs\n"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include <stdio.h> | ||
|
||
int main(int argc, char** argv) { | ||
printf("procargs\n"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include <stdio.h> | ||
|
||
int main(int argc, char** argv) { | ||
printf("rawargs\n"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/usr/bin/env sh | ||
|
||
set -e | ||
|
||
cd $(dirname "$0") | ||
|
||
echo "> Analyze tb.vhd" | ||
ghdl -a tb.vhd | ||
|
||
|
||
echo "> Build tb (with rawargs.c)" | ||
ghdl -e -Wl,rawargs.c -o tb_rawargs tb | ||
|
||
echo "> Execute tb_rawargs" | ||
./tb_rawargs | ||
|
||
|
||
echo "> Build tb (with procargs.c)" | ||
ghdl -e -Wl,procargs.c -o tb_procargs tb | ||
|
||
echo "> Execute tb_procargs" | ||
./tb_procargs | ||
|
||
|
||
echo "> Build tb (with fcnargs.c)" | ||
ghdl -e -Wl,fcnargs.c -o tb_fcnargs tb | ||
|
||
echo "> Execute tb_fcnargs" | ||
./tb_fcnargs | ||
|
||
|
||
echo "> Build tb (with separgs.c)" | ||
ghdl -e -Wl,separgs.c -o tb_separgs tb | ||
|
||
echo "> Execute tb_separgs" | ||
./tb_separgs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include <stdio.h> | ||
|
||
int main(int argc, char** argv) { | ||
printf("separgs\n"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
entity tb is | ||
end entity; | ||
|
||
architecture arch of tb is | ||
begin | ||
process begin | ||
report "Hello linking/bind!" severity note; | ||
wait; | ||
end process; | ||
end; |