Jump to content


Simulation Problem


  • You cannot reply to this topic
5 replies to this topic

#1 ekinzhou

    Member

  • Members
  • PipPip
  • 12 posts

Posted 22 September 2008 - 09:17 PM

Attached File  2.JPG (143.8K)
Number of downloads: 10

As you can see in the picture, I do not set _rd for in1 and in2, it is automatical set.

I have set the data of in1 and in2, but the result of out is 64'hhhhhhhh...

why? Do I set some signal wrong?

According to this picture, could you tell me if there are something setting wrong? Or how to set them for just one success setting for example.


My purpose, in impulse C, just get the output value, while output= in1 * in2, and the in1 and in2 I give is -1.25 and 2.75 double type respectively. The VHDL file is xilinx generic VHDL file.

Thanks.

#2 etrexel

    Advanced Member

  • Impulse Staff
  • PipPipPip
  • 260 posts

Posted 22 September 2008 - 10:45 PM

QUOTE (ekinzhou @ Sep 22 2008, 11:17 PM) <{POST_SNAPBACK}>
Attached File  2.JPG (143.8K)
Number of downloads: 10

As you can see in the picture, I do not set _rd for in1 and in2, it is automatical set.

I have set the data of in1 and in2, but the result of out is 64'hhhhhhhh...

why? Do I set some signal wrong?

According to this picture, could you tell me if there are something setting wrong? Or how to set them for just one success setting for example.


My purpose, in impulse C, just get the output value, while output= in1 * in2, and the in1 and in2 I give is -1.25 and 2.75 double type respectively. The VHDL file is xilinx generic VHDL file.

Thanks.

Hi,
Correct, the '_rdy signals are outputs being driven by the internal logic and you only need to drive the inputs in your test bench. Looking at the picture, the first thing that is incorrect is that the reset signal - reset is active high and typically you will see it be a '1' from 0ns to at least 100ns. Your clock signal 'clk' is also incorrect, just drive 'clk' and 'sclk' with the same clock signal. Fixing these two things you should see some changes. Also, if you want to see the output data coming out on p_consumer_out_data as soon as it is available, just set p_consumer_out_en to '1' and the output data will be valid each time you see p_consumer_out_rdy become a '1'.

Ed
Ed Trexel
Impulse Accelerated Technologies, Inc.

#3 ekinzhou

    Member

  • Members
  • PipPip
  • 12 posts

Posted 23 September 2008 - 07:48 AM

Attached File  1.JPG (141.67K)
Number of downloads: 5
QUOTE (etrexel @ Sep 23 2008, 02:45 PM) <{POST_SNAPBACK}>
Hi,
Correct, the '_rdy signals are outputs being driven by the internal logic and you only need to drive the inputs in your test bench. Looking at the picture, the first thing that is incorrect is that the reset signal - reset is active high and typically you will see it be a '1' from 0ns to at least 100ns. Your clock signal 'clk' is also incorrect, just drive 'clk' and 'sclk' with the same clock signal. Fixing these two things you should see some changes. Also, if you want to see the output data coming out on p_consumer_out_data as soon as it is available, just set p_consumer_out_en to '1' and the output data will be valid each time you see p_consumer_out_rdy become a '1'.

Ed



Thanks, but when I set the reset signal from 0ns to 100ns, I find an error as the new picture showed

#4 etrexel

    Advanced Member

  • Impulse Staff
  • PipPipPip
  • 260 posts

Posted 23 September 2008 - 08:53 AM

QUOTE (ekinzhou @ Sep 23 2008, 09:48 AM) <{POST_SNAPBACK}>
Attached File  1.JPG (141.67K)
Number of downloads: 5


Thanks, but when I set the reset signal from 0ns to 100ns, I find an error as the new picture showed


Hi,
To avoid the error, wait until after 100ns before changing any of your input signals.

Ed
Ed Trexel
Impulse Accelerated Technologies, Inc.

#5 ekinzhou

    Member

  • Members
  • PipPip
  • 12 posts

Posted 23 September 2008 - 08:56 AM

QUOTE (etrexel @ Sep 24 2008, 12:53 AM) <{POST_SNAPBACK}>
Hi,
To avoid the error, wait until after 100ns before changing any of your input signals.

Ed


I have sent the email to support for a few questions. Could you reply me today?

#6 etrexel

    Advanced Member

  • Impulse Staff
  • PipPipPip
  • 260 posts

Posted 23 September 2008 - 09:09 AM

QUOTE (ekinzhou @ Sep 23 2008, 10:56 AM) <{POST_SNAPBACK}>
I have sent the email to support for a few questions. Could you reply me today?


Hi,
Just did.
Ed
Ed Trexel
Impulse Accelerated Technologies, Inc.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users