Testbench is not working properly in GHDL

C

Christiano

Guest
Hi I made a testbench, but is not working properly.

The testbench code is here:
http://pastebin.com/jJgjrpp7

The code of the "target" is here:
http://pastebin.com/Y0aRG85N

When the program runs, it shows this:
0010 ---> 0=d, 0=clk, 1=rst, 0=q

Ok, now I will enter the new set of entries that I want.
000 ------> 0=d, 0=clk, 0=rst

The program shows this:
test ----> Means that went where it should.
000 -----> The value entered
0010 ----> Not changed!!

This may be a bug GHDL? Or did I do something wrong?
 
On Friday, August 9, 2013 11:48:27 PM UTC-3, Christiano wrote:
Hi I made a testbench, but is not working properly.



The testbench code is here:

http://pastebin.com/jJgjrpp7



The code of the "target" is here:

http://pastebin.com/Y0aRG85N



When the program runs, it shows this:

0010 ---> 0=d, 0=clk, 1=rst, 0=q



Ok, now I will enter the new set of entries that I want.

000 ------> 0=d, 0=clk, 0=rst



The program shows this:

test ----> Means that went where it should.

000 -----> The value entered

0010 ----> Not changed!!



This may be a bug GHDL? Or did I do something wrong?
In added a
wait for 50 ns;
Early in the process that everything worked correctly, simulators need to put a wait, and wait is not real, if I put 5000000 us he will not stand 5 seconds, is all virtual.
 

Welcome to EDABoard.com

Sponsor

Back
Top