fx3_firmware: increase DMA buffer sizes for USB throughput bottleneck
$ make test_hdl [----------] Global test environment tear-down [==========] 63 tests from 2 test suites ran. (381209 ms total) [ PASSED ] 63 tests. [100%] Built target test_hdl
This commit is contained in:
parent
0da168b823
commit
b0ed92eae8
3 changed files with 6 additions and 6 deletions
|
|
@ -290,8 +290,8 @@ static void NuandRFLinkStart(void)
|
|||
}
|
||||
|
||||
CyU3PMemSet((uint8_t *)&dmaCfg, 0, sizeof(dmaCfg));
|
||||
dmaCfg.size = size * 2;
|
||||
dmaCfg.count = 22;
|
||||
dmaCfg.size = size * 8;
|
||||
dmaCfg.count = 11;
|
||||
dmaCfg.prodSckId = BLADE_RF_SAMPLE_EP_PRODUCER_USB_SOCKET;
|
||||
dmaCfg.consSckId = CY_U3P_PIB_SOCKET_3;
|
||||
dmaCfg.dmaMode = CY_U3P_DMA_MODE_BYTE;
|
||||
|
|
|
|||
|
|
@ -22,6 +22,6 @@ use ieee.std_logic_1164.all;
|
|||
|
||||
package fx3_gpif_p is
|
||||
-- GPIF buf sizes for USB high-speed and super-speed
|
||||
constant GPIF_BUF_SIZE_HS : natural := 256;
|
||||
constant GPIF_BUF_SIZE_SS : natural := 512;
|
||||
constant GPIF_BUF_SIZE_HS : natural := 1024;
|
||||
constant GPIF_BUF_SIZE_SS : natural := 2048;
|
||||
end package fx3_gpif_p;
|
||||
|
|
|
|||
|
|
@ -61,8 +61,8 @@ extern bool bladerf_usb_reset_device_on_open;
|
|||
#endif
|
||||
|
||||
/* Size of a host<->FPGA message in BYTES */
|
||||
#define USB_MSG_SIZE_SS 2048
|
||||
#define USB_MSG_SIZE_HS 1024
|
||||
#define USB_MSG_SIZE_SS 8192
|
||||
#define USB_MSG_SIZE_HS 4096
|
||||
|
||||
typedef enum {
|
||||
USB_TARGET_DEVICE,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue