![]() |
|
|
|
#1 |
|
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. Rob |
|
|
|
|
#2 |
|
Posts: n/a
|
On May 28, 7:52 am, Rob <R...@yahoo.co.uk> 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 rickman |
|
|
|
#3 |
|
Posts: n/a
|
> > 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? It is declared as unsigned...so in this case I cant compare bitwise I assume. But I could cast it to std_logic_vector, couldnt I? Rob |
|
|
|
#4 |
|
Posts: n/a
|
On May 28, 9:40 am, Rob <R...@yahoo.co.uk> wrote:
> > 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? > > It is declared as unsigned...so in this case I cant compare bitwise I > assume. But I could cast it to std_logic_vector, couldnt I? I didn't think that was necessary. unsigned is compatible with string literals. No? Rick rickman |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Comparing Data | IcePirate | General Help Related Topics | 0 | 09-05-2008 04:31 PM |
| OT - plasma/LCD what's the diff? | Paul Lefebvre | DVD Video | 41 | 06-09-2004 10:30 PM |
| Am I missing the point | BRS | DVD Video | 179 | 01-11-2004 07:31 PM |