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
Geehrter Beitragender II
1.232Aufrufe

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 Antworten
Altera_Forum
Geehrter Beitragender II
538Aufrufe

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

Altera_Forum
Geehrter Beitragender II
538Aufrufe

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

Altera_Forum
Geehrter Beitragender II
538Aufrufe

I get it,thank you!

Antworten