Talk About Network

Google





Electronic Equipment > VHDL > Re: Comparing m...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 6 Topic 6052 of 6445
Post > Topic >>

Re: Comparing more than one bits?

by rickman <gnuarm@[EMAIL PROTECTED] > May 28, 2008 at 06:32 AM

On May 28, 7:52 am, Rob <R...@[EMAIL PROTECTED]
> wrote:
> Hi
>
> I wann do a simpe comparison, to see if 6 bits of my bus have a certain
> value. However, the codefragmet below does not work to my surpirse.
> Anyone an idea what I am missing? must be simple, the error message says
> no feasable entries for infix op: =
>
> if ( clk = '1' and clk'event ) then
>         if (data_bus(31 downto 26)="100011") then
>         ...
>
> Thanks in advance,
> R.

How is data_bus declared?  If it is std_logic_vector, this looks good
to me.  The error message is saying that it can't find a version of
'=' that uses the two operand types and produces a boolean which is
required by the IF.  Did you include the libraries?

Rick
 




 6 Posts in Topic:
Comparing more than one bits?
Rob <Rob@[EMAIL PROTEC  2008-05-28 12:52:34 
Re: Comparing more than one bits?
rickman <gnuarm@[EMAIL  2008-05-28 06:32:57 
Re: Comparing more than one bits?
Rob <Rob@[EMAIL PROTEC  2008-05-28 14:40:02 
Re: Comparing more than one bits?
Jonathan Bromley <jona  2008-05-28 14:56:16 
Re: Comparing more than one bits?
rickman <gnuarm@[EMAIL  2008-05-28 07:19:25 
Re: Comparing more than one bits?
Brian Drummond <brian_  2008-05-29 13:11:53 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Thu Jan 8 19:27:03 PST 2009.