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

[Compliance-Tests] Condition operators for type bit #977

Closed
eine opened this issue Oct 13, 2019 · 0 comments
Closed

[Compliance-Tests] Condition operators for type bit #977

eine opened this issue Oct 13, 2019 · 0 comments
Labels
Bug FeaReq: VHDL-2008 Requested feature addition related to VHDL-2008.

Comments

@eine
Copy link
Collaborator

eine commented Oct 13, 2019

In VHDL/Compliance-Tests, tests for VHDL 2008 and VHDL 2019 features are being gathered. 18 tests related to conditional operators in VHDL 2008 are defined in a single file (https://github.com/VHDL/Compliance-Tests/blob/master/vhdl_2008/tb_condition_operator.vhd). These features seem to be implemented in GHDL for type std_logic, but not for bit. As a result, compiling the file produces a crash, and all of the tests fail: https://github.com/1138-4EB/Compliance-Tests/commit/76d8f03770003d4f2653342c4f6755156c3aa2a4/checks?check_suite_id=263110591.

By commenting out bit cases (https://github.com/1138-4EB/Compliance-Tests/commit/f415c49cd5a65d4470a3c7878ab01fed0ef77a73) 18 tests pass: https://github.com/1138-4EB/Compliance-Tests/commit/f415c49cd5a65d4470a3c7878ab01fed0ef77a73/checks?check_suite_id=263119021

How to reproduce?

apt update -qq
apt install git
git clone https://github.com/VHDL/Compliance-Tests
cd Compliance-Tests
python3 run.py -v "vhdl_2008.tb_condition_operator.*"

# :image: ghdl/vunit:llvm

Context

If a GHDL Bug occurred block is shown in the log, please paste it here:

internal error: eval_monadic_operator: IIR_PREDEFINED_BIT_CONDITION

******************** GHDL Bug occurred ***************************
Please report this bug on https://github.com/ghdl/ghdl/issues
GHDL release: 0.37-dev (v0.36-1004-g97aee23d) [Dunoon edition]
Compiled with GNAT Version: 8.3.0
Target: x86_64-linux-gnu
/src/
Command line:
/usr/local/bin/ghdl1-llvm --workdir=/src/vunit_out/ghdl/libraries/vhdl_2008 --work=vhdl_2008 --std=08 -P/src/vunit_out/ghdl/libraries/
vunit_lib/ -P/src/vunit_out/ghdl/libraries/vhdl_2008/ -P/src/vunit_out/ghdl/libraries/vhdl_2019/ -P/usr/local/lib/ghdl/ieee/v08/ -P/us
r/local/lib/ghdl/ -c -fpic -o /src/vunit_out/ghdl/libraries/vhdl_2008/tb_condition_operator.o /src/vhdl_2008/tb_condition_operator.vhd
Exception TYPES.INTERNAL_ERROR raised
Exception information:
raised TYPES.INTERNAL_ERROR : vhdl-errors.adb:180
Call stack traceback locations:
0x4b079a 0x4e6c81 0x4eec09 0x4efaf3 0x4f0052 0x545624 0x545b3e 0x545e27 0x54f255 0x55ba47 0x545010 0x52e006 0x52de06 0x52dec8 0x52e141
 0x52ed7c 0x52f254 0x52f593 0x563557 0x56a206 0x5269c2 0x63956e 0x63b170 0x63ca1f 0x409fc1 0x7fdeb6df7099 0x409178 0xfffffffffffffffe
******************************************************************
@eine eine added Bug FeaReq: VHDL-2008 Requested feature addition related to VHDL-2008. labels Oct 13, 2019
@eine eine changed the title Condition operators for type bit [Compliance-Tests] Condition operators for type bit Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug FeaReq: VHDL-2008 Requested feature addition related to VHDL-2008.
Projects
None yet
Development

No branches or pull requests

1 participant