David G. Koontz wrote:

A quick check shows this bug has been logged last May
for the Windows ghdl 29.1 version

http://gna.org/bugs/?15993


After looking through the gna bug list again, comment #1
of bug 15966 describes the exact std_logic resolution problem:

http://gna.org/bugs/?func=detailitem&item_id=15966
"
" It seems resolution function fail on multi sources signals (std_logic).
"


I'd suspect increasing the stack size won't help.

 Correct, the stack size flags don't help.

I reduced the problem to a minimum test case by stripping
out the console writes and using just a single std_logic signal,
see footnote below.


This is one for whoever put the window version together
or has experience with the target build environment for Windows.

I can't be of any help there.

I have kept track of the other problems and workarounds that
I've seen, I'll submit them to the bug list once I create small
test cases to duplicate the problems.

I'm still new enough to ghdl that I figured I might just be
encountering an installation or pilot error.

thanks,
Brian

-------------
--
-- <t2.vhd>
--
--  simpler example of ghdl.exe crash when std_logic resolution required
--  GHDL version 0.29.1
--  WinXP SP3
--

library ieee;
 use ieee.std_logic_1164.all;

entity t2 is
end t2;

architecture crash of t2 is

 signal dbit : std_logic;

 begin

   dbit <= 'H';  -- weak pullup

   dbit <= '0' after 100 ns;

 end crash;

-------------
Run log:

C:\ghdl_test\zbug>ghdl -a  --workdir=work.ghd t2.vhd

C:\ghdl_test\zbug>ghdl -e  --workdir=work.ghd t2

C:\ghdl_test\zbug>ghdl -r --workdir=work.ghd t2 --disp-signals-table --trace-signals --trace-processes --stack-size=65536 --stack-max-size=1048576
0: 02A6F8B0 net: -3 smode: signal #prt: 0 #drv: 2 resolved
run process .t2(crash).P0 [02A6F930]
run process .t2(crash).P1 [02A6F930]
.t2(crash).dbit 02A6F8B0 e8 --a- last_event=-9223372036854775807fs last_active=-9223372036854775807fs val='L'; drv='L'
Now is 0ms +0
C:\Program Files\Ghdl\Bin\ghdl.exe:error: invalid memory access (dangling accesses or stack size too small)
C:\Program Files\Ghdl\Bin\ghdl.exe:error: simulation failed

-------------


_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to