Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] sim: add ghdl #180

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
748 changes: 7 additions & 741 deletions .github/workflows/build-packages.yml

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions sim/ghdl/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#! /bin/bash

set -e
set -x

export CC_FOR_BUILD=$CC

./configure --prefix=$PREFIX

make -j$CPU_COUNT
make install
42 changes: 42 additions & 0 deletions sim/ghdl/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Use `conda-build-prepare` before building for a better version string.
{% set version = '%s_%04i_%s'|format(GIT_DESCRIBE_TAG or 'sUNKNOWN', GIT_DESCRIBE_NUMBER|int, GIT_DESCRIBE_HASH or 'gUNKNOWN') %}

package:
name: ghdl
version: {{ version }}

source:
git_url: https://github.com/ghdl/ghdl.git
git_rev: master

build:
# number: 201803050325
number: {{ environ.get('DATE_NUM') }}
# string: 20180305_0325
string: {{ environ.get('DATE_STR') }}
script_env:
- CI

requirements:
build:
- {{ compiler('c') }} [linux]
- {{ compiler('cxx') }} [linux]
- make [not win]
- m2-bash [win]
- m2-make [win]
- m2w64-gcc [win]
- m2w64-gcc-ada [win]
host:

test:
# files:
# - test/counter.v
# - test/counter_tb.v
# - test/counter_list.txt

about:
home: http://github.com/ghdl
license: GPLv2+
license_file: COPYING.md
summary: |
Open-source analyzer, compiler, simulator and (experimental) synthesizer for VHDL, a Hardware Description Language (HDL)
7 changes: 7 additions & 0 deletions sim/ghdl/run_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

set -e
set +x

$PREFIX/bin/ghdl version
$PREFIX/bin/ghdl -h