Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17267 Discussions

The proble of testbench

Altera_Forum
Honored Contributor II
1,240 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
546 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
546 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
546 Views

I get it,thank you!

0 Kudos
Reply