Skip to content

Commit c84b294

Browse files
committed
[WIP] sim: add ghdl
Signed-off-by: Unai Martinez-Corral <[email protected]>
1 parent 6e29a45 commit c84b294

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed

sim/ghdl/build.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#! /bin/bash
2+
3+
set -e
4+
set -x
5+
6+
export CC_FOR_BUILD=$CC
7+
8+
./configure --prefix=$PREFIX
9+
10+
make -j$CPU_COUNT
11+
make install

sim/ghdl/meta.yaml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Use `conda-build-prepare` before building for a better version string.
2+
{% set version = '%s_%04i_%s'|format(GIT_DESCRIBE_TAG or 'sUNKNOWN', GIT_DESCRIBE_NUMBER|int, GIT_DESCRIBE_HASH or 'gUNKNOWN') %}
3+
4+
package:
5+
name: ghdl
6+
version: {{ version }}
7+
8+
source:
9+
git_url: https://github.com/ghdl/ghdl.git
10+
git_rev: master
11+
12+
build:
13+
# number: 201803050325
14+
number: {{ environ.get('DATE_NUM') }}
15+
# string: 20180305_0325
16+
string: {{ environ.get('DATE_STR') }}
17+
script_env:
18+
- CI
19+
20+
requirements:
21+
build:
22+
- {{ compiler('c') }} [linux]
23+
- {{ compiler('cxx') }} [linux]
24+
- make [not win]
25+
- m2-bash [win]
26+
- m2-make [win]
27+
- m2w64-gcc [win]
28+
- m2w64-gcc-ada [win]
29+
host:
30+
31+
test:
32+
# files:
33+
# - test/counter.v
34+
# - test/counter_tb.v
35+
# - test/counter_list.txt
36+
37+
about:
38+
home: http://github.com/ghdl
39+
license: GPLv2+
40+
license_file: COPYING.md
41+
summary: |
42+
Open-source analyzer, compiler, simulator and (experimental) synthesizer for VHDL, a Hardware Description Language (HDL)

sim/ghdl/run_test.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
set -e
4+
set +x
5+
6+
$PREFIX/bin/ghdl version
7+
$PREFIX/bin/ghdl -h

0 commit comments

Comments
 (0)