Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

USB superspeed peripherals Forum Discussions

gawac_3795096
Level 1
Level 1

I have problem converting AN75779 UVC example to interface with FPGA at 32bit.

20190401-2.png

How to modify firmware on AN75779 basis

0 Likes
1 Solution
MaAr_2545856
Level 4
Level 4
5 solutions authored First solution authored 25 replies posted

If the image sensor/ASIC has a 32-bit-wide data bus, you would need to change the GPIF II interface to accommodate the data bus. To accomplish this, take the following steps:

  1. Open the ImageSensorInterface.cyfx project in the GPIF II Designer. (This project may not be directly compiled.)

2. Go to File->Save Project As.

  1. Save the project in a convenient location with a convenient name in the dialog box that will appear.
  2. Close the currently open project (File->Close Project).
  3. Open the project that was saved in step 3.
  4. Go to the Interface Definition tab and choose the 32 Bit option for Address/Data Bus Usage setting.
  5. Go to the State Machine tab.
  6. In the state machine canvas, double-click the LD_DATA_COUNT action inside the WAIT_FOR_FRAME_START state. Change the counter limit value to 4091.
  7. Do the same for LD_ADDR_COUNT action.
  8. Save the Project.
  9. Build the Project.
  10. Copy the newly generated cyfxgpif2config.h header file from the location selected in Step 3 to the firmware project directory. You will overwrite the existing cyfxgpif2config.h file if there is one. Find the firmware project directory, cyfxuvc_an75779, inside the zip file of the attached source. Note: If you are changing the GPIF II bus width to 32 bits, make sure the iomatrix configuration in the firmware has the isDQ32Bit parameter set to CyTrue.

View solution in original post

0 Likes
2 Replies
MaAr_2545856
Level 4
Level 4
5 solutions authored First solution authored 25 replies posted

If the image sensor/ASIC has a 32-bit-wide data bus, you would need to change the GPIF II interface to accommodate the data bus. To accomplish this, take the following steps:

  1. Open the ImageSensorInterface.cyfx project in the GPIF II Designer. (This project may not be directly compiled.)

2. Go to File->Save Project As.

  1. Save the project in a convenient location with a convenient name in the dialog box that will appear.
  2. Close the currently open project (File->Close Project).
  3. Open the project that was saved in step 3.
  4. Go to the Interface Definition tab and choose the 32 Bit option for Address/Data Bus Usage setting.
  5. Go to the State Machine tab.
  6. In the state machine canvas, double-click the LD_DATA_COUNT action inside the WAIT_FOR_FRAME_START state. Change the counter limit value to 4091.
  7. Do the same for LD_ADDR_COUNT action.
  8. Save the Project.
  9. Build the Project.
  10. Copy the newly generated cyfxgpif2config.h header file from the location selected in Step 3 to the firmware project directory. You will overwrite the existing cyfxgpif2config.h file if there is one. Find the firmware project directory, cyfxuvc_an75779, inside the zip file of the attached source. Note: If you are changing the GPIF II bus width to 32 bits, make sure the iomatrix configuration in the firmware has the isDQ32Bit parameter set to CyTrue.
0 Likes

I also tried to do the same thing but FX3 stopped sending image after changes described above.

What should be the length of data valid in case of 32-bit?

Obviously there should be some limitation on length of pause between DV and probably between FV raise/fall and DV. What are they?

0 Likes