I wrote a testbench in which i declared a variable ic as bit_vector (3
to 0). now when i tried putting
ic:=ic + 1 inside a loop it shows operator argument type mismatch.
I treid declaring it as signed and unsigned.
Re: test bench
On 20 Nov, 08:20, whereismel...@gmail.com wrote:
> I wrote a testbench in which i declared a variable ic as bit_vector (3
> to 0). now when i tried putting
> ic:=ic + 1 inside a loop it shows *operator argument type mismatch.
> I treid declaring it as signed and unsigned.
Im guessing you are using the following:
replace all of these with ieee.numeric_std.all;
then, done declare ic as a bit_vector, declare it as unsigned/signed
and it should work.
variable ic : unsigned(3 downto 0) := "0000"; --or put the
initial state in the reset path
ic := ic + 1;
this will work fine.
|All times are GMT. The time now is 03:49 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.