Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)

The proble of testbench

Altera_Forum
Honored Contributor II
1,166 Views

Hi! 

I am a newbie of the testbench,during the learning I meet some problem. 

 

There is something wrong with the "dataout/=i",maybe they are different type. 

what should I do to convert them into the same type? 

 

please help me.
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
472 Views

Take a good look here: "vhdl math tricks of the trade" (http://http://www.synthworks.com/papers/vhdl_math_tricks_mapld_2003.pdf)

0 Kudos
Altera_Forum
Honored Contributor II
472 Views

You can't compare a std_logic_vector with an integer. Use the 'unsigned' type from ieee.numeric_std instead

0 Kudos
Altera_Forum
Honored Contributor II
472 Views

I get it,thank you!

0 Kudos
Reply