VHDL Loop error

Discussion in 'Embedded Systems and Microcontrollers' started by syyang85, Mar 21, 2008.

  1. syyang85

    Thread Starter New Member

    Jan 26, 2008
    1
    0
    Here's the scenario, typical camera have vsync,href,pclk and 8-bits data.
    vsync represents new frame
    href represents new line
    pclk represents new pixel
    [​IMG]
    I would like to capture the first 50x50 pixels of the frame and another frame after the 60th frame.

    All I need is two frames.

    I'm getting this error
    Here my code:
     
  2. ametso

    Member

    Apr 30, 2008
    13
    0
    the problem is that you try to plase a string literal to "FOR" loop. Only acceptable type for "FOR " is integer. So you have to convert your bit string to the integer.
     
  3. Papabravo

    Expert

    Feb 24, 2006
    10,163
    1,796
    You could use variables declared as integers and local to the process.
    The problem is you can't do arithmetic on std_logic vectors. VHDL is strongly typed for exactly this reason.
     
Loading...