You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Using VPI (cocotb 0.2.3) with latest ghdl, trying to access a constant array results in vpi_get: unknown property.
Expected behaviour
The value of the constant array should be accessible and not error should happen.
How to reproduce?
LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
USE ieee.numeric_std.ALL;
ENTITYmainISPORT (
data_out : outstd_logic_vector(15DOWNTO0));
ENDmain;
ARCHITECTUREstructureOFmainISTYPEmemTISARRAY(0to2) OFunsigned(15DOWNTO0);
SIGNAL mem : memT;
CONSTANT memC : memT := (others=> (others=>'0'));
BEGIN
data_out <=std_logic_vector(mem(0));
ENDstructure;
importcocotbfromcocotb.triggersimportTimer@cocotb.test()asyncdefinit_test(dut):
awaitTimer(1)
print("Elements in dut:")
print(dir(dut))
print ("")
print("Memory: ")
print(dut.mem[0].value)
# Following line makes GHDL crashprint(dut.memC[0].value)
Description
Using VPI (cocotb 0.2.3) with latest ghdl, trying to access a constant array results in
vpi_get: unknown property
.Expected behaviour
The value of the constant array should be accessible and not error should happen.
How to reproduce?
Context
Please, provide the following information:
version
tarball_url
65a40a067d1b153265eaf8bcadbc225c5eeac041
Maybe helpful material
Issue #237, closed with c64e7ba
The text was updated successfully, but these errors were encountered: