block/USB_DEVICE: description: Full-speed USB Serial/JTAG Controller. items: - name: EP1 description: USB_DEVICE_EP1_REG. byte_offset: 0 fieldset: EP1 - name: EP1_CONF description: USB_DEVICE_EP1_CONF_REG. byte_offset: 4 fieldset: EP1_CONF - name: INT_RAW description: USB_DEVICE_INT_RAW_REG. byte_offset: 8 fieldset: INT_RAW - name: INT_ST description: USB_DEVICE_INT_ST_REG. byte_offset: 12 fieldset: INT_ST - name: INT_ENA description: USB_DEVICE_INT_ENA_REG. byte_offset: 16 fieldset: INT_ENA - name: INT_CLR description: USB_DEVICE_INT_CLR_REG. byte_offset: 20 fieldset: INT_CLR - name: CONF0 description: USB_DEVICE_CONF0_REG. byte_offset: 24 fieldset: CONF0 - name: TEST description: USB_DEVICE_TEST_REG. byte_offset: 28 fieldset: TEST - name: JFIFO_ST description: USB_DEVICE_JFIFO_ST_REG. byte_offset: 32 fieldset: JFIFO_ST - name: FRAM_NUM description: USB_DEVICE_FRAM_NUM_REG. byte_offset: 36 fieldset: FRAM_NUM - name: IN_EP0_ST description: USB_DEVICE_IN_EP0_ST_REG. byte_offset: 40 fieldset: IN_EP0_ST - name: IN_EP1_ST description: USB_DEVICE_IN_EP1_ST_REG. byte_offset: 44 fieldset: IN_EP1_ST - name: IN_EP2_ST description: USB_DEVICE_IN_EP2_ST_REG. byte_offset: 48 fieldset: IN_EP2_ST - name: IN_EP3_ST description: USB_DEVICE_IN_EP3_ST_REG. byte_offset: 52 fieldset: IN_EP3_ST - name: OUT_EP0_ST description: USB_DEVICE_OUT_EP0_ST_REG. byte_offset: 56 fieldset: OUT_EP0_ST - name: OUT_EP1_ST description: USB_DEVICE_OUT_EP1_ST_REG. byte_offset: 60 fieldset: OUT_EP1_ST - name: OUT_EP2_ST description: USB_DEVICE_OUT_EP2_ST_REG. byte_offset: 64 fieldset: OUT_EP2_ST - name: MISC_CONF description: USB_DEVICE_MISC_CONF_REG. byte_offset: 68 fieldset: MISC_CONF - name: MEM_CONF description: USB_DEVICE_MEM_CONF_REG. byte_offset: 72 fieldset: MEM_CONF - name: DATE description: USB_DEVICE_DATE_REG. byte_offset: 128 fieldset: DATE fieldset/CONF0: description: USB_DEVICE_CONF0_REG. fields: - name: PHY_SEL description: Select internal/external PHY. bit_offset: 0 bit_size: 1 - name: EXCHG_PINS_OVERRIDE description: Enable software control USB D+ D- exchange. bit_offset: 1 bit_size: 1 - name: EXCHG_PINS description: USB D+ D- exchange. bit_offset: 2 bit_size: 1 - name: VREFH description: Control single-end input high threshold,1.76V to 2V, step 80mV. bit_offset: 3 bit_size: 2 - name: VREFL description: Control single-end input low threshold,0.8V to 1.04V, step 80mV. bit_offset: 5 bit_size: 2 - name: VREF_OVERRIDE description: Enable software control input threshold. bit_offset: 7 bit_size: 1 - name: PAD_PULL_OVERRIDE description: Enable software control USB D+ D- pullup pulldown. bit_offset: 8 bit_size: 1 - name: DP_PULLUP description: Control USB D+ pull up. bit_offset: 9 bit_size: 1 - name: DP_PULLDOWN description: Control USB D+ pull down. bit_offset: 10 bit_size: 1 - name: DM_PULLUP description: Control USB D- pull up. bit_offset: 11 bit_size: 1 - name: DM_PULLDOWN description: Control USB D- pull down. bit_offset: 12 bit_size: 1 - name: PULLUP_VALUE description: Control pull up value. bit_offset: 13 bit_size: 1 - name: USB_PAD_ENABLE description: Enable USB pad function. bit_offset: 14 bit_size: 1 fieldset/DATE: description: USB_DEVICE_DATE_REG. fields: - name: DATE description: register version. bit_offset: 0 bit_size: 32 fieldset/EP1: description: USB_DEVICE_EP1_REG. fields: - name: RDWR_BYTE description: Write and read byte data to/from UART Tx/Rx FIFO through this field. When USB_DEVICE_SERIAL_IN_EMPTY_INT is set, then user can write data (up to 64 bytes) into UART Tx FIFO. When USB_DEVICE_SERIAL_OUT_RECV_PKT_INT is set, user can check USB_DEVICE_OUT_EP1_WR_ADDR USB_DEVICE_OUT_EP0_RD_ADDR to know how many data is received, then read data from UART Rx FIFO. bit_offset: 0 bit_size: 8 fieldset/EP1_CONF: description: USB_DEVICE_EP1_CONF_REG. fields: - name: WR_DONE description: Set this bit to indicate writing byte data to UART Tx FIFO is done. bit_offset: 0 bit_size: 1 - name: SERIAL_IN_EP_DATA_FREE description: '1''b1: Indicate UART Tx FIFO is not full and can write data into in. After writing USB_DEVICE_WR_DONE, this bit would be 0 until data in UART Tx FIFO is read by USB Host.' bit_offset: 1 bit_size: 1 - name: SERIAL_OUT_EP_DATA_AVAIL description: '1''b1: Indicate there is data in UART Rx FIFO.' bit_offset: 2 bit_size: 1 fieldset/FRAM_NUM: description: USB_DEVICE_FRAM_NUM_REG. fields: - name: SOF_FRAME_INDEX description: Frame index of received SOF frame. bit_offset: 0 bit_size: 11 fieldset/INT_CLR: description: USB_DEVICE_INT_CLR_REG. fields: - name: JTAG_IN_FLUSH_INT_CLR description: Set this bit to clear the USB_DEVICE_JTAG_IN_FLUSH_INT interrupt. bit_offset: 0 bit_size: 1 - name: SOF_INT_CLR description: Set this bit to clear the USB_DEVICE_JTAG_SOF_INT interrupt. bit_offset: 1 bit_size: 1 - name: SERIAL_OUT_RECV_PKT_INT_CLR description: Set this bit to clear the USB_DEVICE_SERIAL_OUT_RECV_PKT_INT interrupt. bit_offset: 2 bit_size: 1 - name: SERIAL_IN_EMPTY_INT_CLR description: Set this bit to clear the USB_DEVICE_SERIAL_IN_EMPTY_INT interrupt. bit_offset: 3 bit_size: 1 - name: PID_ERR_INT_CLR description: Set this bit to clear the USB_DEVICE_PID_ERR_INT interrupt. bit_offset: 4 bit_size: 1 - name: CRC5_ERR_INT_CLR description: Set this bit to clear the USB_DEVICE_CRC5_ERR_INT interrupt. bit_offset: 5 bit_size: 1 - name: CRC16_ERR_INT_CLR description: Set this bit to clear the USB_DEVICE_CRC16_ERR_INT interrupt. bit_offset: 6 bit_size: 1 - name: STUFF_ERR_INT_CLR description: Set this bit to clear the USB_DEVICE_STUFF_ERR_INT interrupt. bit_offset: 7 bit_size: 1 - name: IN_TOKEN_REC_IN_EP1_INT_CLR description: Set this bit to clear the USB_DEVICE_IN_TOKEN_IN_EP1_INT interrupt. bit_offset: 8 bit_size: 1 - name: USB_BUS_RESET_INT_CLR description: Set this bit to clear the USB_DEVICE_USB_BUS_RESET_INT interrupt. bit_offset: 9 bit_size: 1 - name: OUT_EP1_ZERO_PAYLOAD_INT_CLR description: Set this bit to clear the USB_DEVICE_OUT_EP1_ZERO_PAYLOAD_INT interrupt. bit_offset: 10 bit_size: 1 - name: OUT_EP2_ZERO_PAYLOAD_INT_CLR description: Set this bit to clear the USB_DEVICE_OUT_EP2_ZERO_PAYLOAD_INT interrupt. bit_offset: 11 bit_size: 1 fieldset/INT_ENA: description: USB_DEVICE_INT_ENA_REG. fields: - name: JTAG_IN_FLUSH_INT_ENA description: The interrupt enable bit for the USB_DEVICE_JTAG_IN_FLUSH_INT interrupt. bit_offset: 0 bit_size: 1 - name: SOF_INT_ENA description: The interrupt enable bit for the USB_DEVICE_SOF_INT interrupt. bit_offset: 1 bit_size: 1 - name: SERIAL_OUT_RECV_PKT_INT_ENA description: The interrupt enable bit for the USB_DEVICE_SERIAL_OUT_RECV_PKT_INT interrupt. bit_offset: 2 bit_size: 1 - name: SERIAL_IN_EMPTY_INT_ENA description: The interrupt enable bit for the USB_DEVICE_SERIAL_IN_EMPTY_INT interrupt. bit_offset: 3 bit_size: 1 - name: PID_ERR_INT_ENA description: The interrupt enable bit for the USB_DEVICE_PID_ERR_INT interrupt. bit_offset: 4 bit_size: 1 - name: CRC5_ERR_INT_ENA description: The interrupt enable bit for the USB_DEVICE_CRC5_ERR_INT interrupt. bit_offset: 5 bit_size: 1 - name: CRC16_ERR_INT_ENA description: The interrupt enable bit for the USB_DEVICE_CRC16_ERR_INT interrupt. bit_offset: 6 bit_size: 1 - name: STUFF_ERR_INT_ENA description: The interrupt enable bit for the USB_DEVICE_STUFF_ERR_INT interrupt. bit_offset: 7 bit_size: 1 - name: IN_TOKEN_REC_IN_EP1_INT_ENA description: The interrupt enable bit for the USB_DEVICE_IN_TOKEN_REC_IN_EP1_INT interrupt. bit_offset: 8 bit_size: 1 - name: USB_BUS_RESET_INT_ENA description: The interrupt enable bit for the USB_DEVICE_USB_BUS_RESET_INT interrupt. bit_offset: 9 bit_size: 1 - name: OUT_EP1_ZERO_PAYLOAD_INT_ENA description: The interrupt enable bit for the USB_DEVICE_OUT_EP1_ZERO_PAYLOAD_INT interrupt. bit_offset: 10 bit_size: 1 - name: OUT_EP2_ZERO_PAYLOAD_INT_ENA description: The interrupt enable bit for the USB_DEVICE_OUT_EP2_ZERO_PAYLOAD_INT interrupt. bit_offset: 11 bit_size: 1 fieldset/INT_RAW: description: USB_DEVICE_INT_RAW_REG. fields: - name: JTAG_IN_FLUSH_INT_RAW description: The raw interrupt bit turns to high level when flush cmd is received for IN endpoint 2 of JTAG. bit_offset: 0 bit_size: 1 - name: SOF_INT_RAW description: The raw interrupt bit turns to high level when SOF frame is received. bit_offset: 1 bit_size: 1 - name: SERIAL_OUT_RECV_PKT_INT_RAW description: The raw interrupt bit turns to high level when Serial Port OUT Endpoint received one packet. bit_offset: 2 bit_size: 1 - name: SERIAL_IN_EMPTY_INT_RAW description: The raw interrupt bit turns to high level when Serial Port IN Endpoint is empty. bit_offset: 3 bit_size: 1 - name: PID_ERR_INT_RAW description: The raw interrupt bit turns to high level when pid error is detected. bit_offset: 4 bit_size: 1 - name: CRC5_ERR_INT_RAW description: The raw interrupt bit turns to high level when CRC5 error is detected. bit_offset: 5 bit_size: 1 - name: CRC16_ERR_INT_RAW description: The raw interrupt bit turns to high level when CRC16 error is detected. bit_offset: 6 bit_size: 1 - name: STUFF_ERR_INT_RAW description: The raw interrupt bit turns to high level when stuff error is detected. bit_offset: 7 bit_size: 1 - name: IN_TOKEN_REC_IN_EP1_INT_RAW description: The raw interrupt bit turns to high level when IN token for IN endpoint 1 is received. bit_offset: 8 bit_size: 1 - name: USB_BUS_RESET_INT_RAW description: The raw interrupt bit turns to high level when usb bus reset is detected. bit_offset: 9 bit_size: 1 - name: OUT_EP1_ZERO_PAYLOAD_INT_RAW description: The raw interrupt bit turns to high level when OUT endpoint 1 received packet with zero palyload. bit_offset: 10 bit_size: 1 - name: OUT_EP2_ZERO_PAYLOAD_INT_RAW description: The raw interrupt bit turns to high level when OUT endpoint 2 received packet with zero palyload. bit_offset: 11 bit_size: 1 fieldset/INT_ST: description: USB_DEVICE_INT_ST_REG. fields: - name: JTAG_IN_FLUSH_INT_ST description: The raw interrupt status bit for the USB_DEVICE_JTAG_IN_FLUSH_INT interrupt. bit_offset: 0 bit_size: 1 - name: SOF_INT_ST description: The raw interrupt status bit for the USB_DEVICE_SOF_INT interrupt. bit_offset: 1 bit_size: 1 - name: SERIAL_OUT_RECV_PKT_INT_ST description: The raw interrupt status bit for the USB_DEVICE_SERIAL_OUT_RECV_PKT_INT interrupt. bit_offset: 2 bit_size: 1 - name: SERIAL_IN_EMPTY_INT_ST description: The raw interrupt status bit for the USB_DEVICE_SERIAL_IN_EMPTY_INT interrupt. bit_offset: 3 bit_size: 1 - name: PID_ERR_INT_ST description: The raw interrupt status bit for the USB_DEVICE_PID_ERR_INT interrupt. bit_offset: 4 bit_size: 1 - name: CRC5_ERR_INT_ST description: The raw interrupt status bit for the USB_DEVICE_CRC5_ERR_INT interrupt. bit_offset: 5 bit_size: 1 - name: CRC16_ERR_INT_ST description: The raw interrupt status bit for the USB_DEVICE_CRC16_ERR_INT interrupt. bit_offset: 6 bit_size: 1 - name: STUFF_ERR_INT_ST description: The raw interrupt status bit for the USB_DEVICE_STUFF_ERR_INT interrupt. bit_offset: 7 bit_size: 1 - name: IN_TOKEN_REC_IN_EP1_INT_ST description: The raw interrupt status bit for the USB_DEVICE_IN_TOKEN_REC_IN_EP1_INT interrupt. bit_offset: 8 bit_size: 1 - name: USB_BUS_RESET_INT_ST description: The raw interrupt status bit for the USB_DEVICE_USB_BUS_RESET_INT interrupt. bit_offset: 9 bit_size: 1 - name: OUT_EP1_ZERO_PAYLOAD_INT_ST description: The raw interrupt status bit for the USB_DEVICE_OUT_EP1_ZERO_PAYLOAD_INT interrupt. bit_offset: 10 bit_size: 1 - name: OUT_EP2_ZERO_PAYLOAD_INT_ST description: The raw interrupt status bit for the USB_DEVICE_OUT_EP2_ZERO_PAYLOAD_INT interrupt. bit_offset: 11 bit_size: 1 fieldset/IN_EP0_ST: description: USB_DEVICE_IN_EP0_ST_REG. fields: - name: IN_EP0_STATE description: State of IN Endpoint 0. bit_offset: 0 bit_size: 2 - name: IN_EP0_WR_ADDR description: Write data address of IN endpoint 0. bit_offset: 2 bit_size: 7 - name: IN_EP0_RD_ADDR description: Read data address of IN endpoint 0. bit_offset: 9 bit_size: 7 fieldset/IN_EP1_ST: description: USB_DEVICE_IN_EP1_ST_REG. fields: - name: IN_EP1_STATE description: State of IN Endpoint 1. bit_offset: 0 bit_size: 2 - name: IN_EP1_WR_ADDR description: Write data address of IN endpoint 1. bit_offset: 2 bit_size: 7 - name: IN_EP1_RD_ADDR description: Read data address of IN endpoint 1. bit_offset: 9 bit_size: 7 fieldset/IN_EP2_ST: description: USB_DEVICE_IN_EP2_ST_REG. fields: - name: IN_EP2_STATE description: State of IN Endpoint 2. bit_offset: 0 bit_size: 2 - name: IN_EP2_WR_ADDR description: Write data address of IN endpoint 2. bit_offset: 2 bit_size: 7 - name: IN_EP2_RD_ADDR description: Read data address of IN endpoint 2. bit_offset: 9 bit_size: 7 fieldset/IN_EP3_ST: description: USB_DEVICE_IN_EP3_ST_REG. fields: - name: IN_EP3_STATE description: State of IN Endpoint 3. bit_offset: 0 bit_size: 2 - name: IN_EP3_WR_ADDR description: Write data address of IN endpoint 3. bit_offset: 2 bit_size: 7 - name: IN_EP3_RD_ADDR description: Read data address of IN endpoint 3. bit_offset: 9 bit_size: 7 fieldset/JFIFO_ST: description: USB_DEVICE_JFIFO_ST_REG. fields: - name: IN_FIFO_CNT description: JTAT in fifo counter. bit_offset: 0 bit_size: 2 - name: IN_FIFO_EMPTY description: '1: JTAG in fifo is empty.' bit_offset: 2 bit_size: 1 - name: IN_FIFO_FULL description: '1: JTAG in fifo is full.' bit_offset: 3 bit_size: 1 - name: OUT_FIFO_CNT description: JTAT out fifo counter. bit_offset: 4 bit_size: 2 - name: OUT_FIFO_EMPTY description: '1: JTAG out fifo is empty.' bit_offset: 6 bit_size: 1 - name: OUT_FIFO_FULL description: '1: JTAG out fifo is full.' bit_offset: 7 bit_size: 1 - name: IN_FIFO_RESET description: Write 1 to reset JTAG in fifo. bit_offset: 8 bit_size: 1 - name: OUT_FIFO_RESET description: Write 1 to reset JTAG out fifo. bit_offset: 9 bit_size: 1 fieldset/MEM_CONF: description: USB_DEVICE_MEM_CONF_REG. fields: - name: USB_MEM_PD description: '1: power down usb memory.' bit_offset: 0 bit_size: 1 - name: USB_MEM_CLK_EN description: '1: Force clock on for usb memory.' bit_offset: 1 bit_size: 1 fieldset/MISC_CONF: description: USB_DEVICE_MISC_CONF_REG. fields: - name: CLK_EN description: '1''h1: Force clock on for register. 1''h0: Support clock only when application writes registers.' bit_offset: 0 bit_size: 1 fieldset/OUT_EP0_ST: description: USB_DEVICE_OUT_EP0_ST_REG. fields: - name: OUT_EP0_STATE description: State of OUT Endpoint 0. bit_offset: 0 bit_size: 2 - name: OUT_EP0_WR_ADDR description: Write data address of OUT endpoint 0. When USB_DEVICE_SERIAL_OUT_RECV_PKT_INT is detected, there are USB_DEVICE_OUT_EP0_WR_ADDR-2 bytes data in OUT EP0. bit_offset: 2 bit_size: 7 - name: OUT_EP0_RD_ADDR description: Read data address of OUT endpoint 0. bit_offset: 9 bit_size: 7 fieldset/OUT_EP1_ST: description: USB_DEVICE_OUT_EP1_ST_REG. fields: - name: OUT_EP1_STATE description: State of OUT Endpoint 1. bit_offset: 0 bit_size: 2 - name: OUT_EP1_WR_ADDR description: Write data address of OUT endpoint 1. When USB_DEVICE_SERIAL_OUT_RECV_PKT_INT is detected, there are USB_DEVICE_OUT_EP1_WR_ADDR-2 bytes data in OUT EP1. bit_offset: 2 bit_size: 7 - name: OUT_EP1_RD_ADDR description: Read data address of OUT endpoint 1. bit_offset: 9 bit_size: 7 - name: OUT_EP1_REC_DATA_CNT description: Data count in OUT endpoint 1 when one packet is received. bit_offset: 16 bit_size: 7 fieldset/OUT_EP2_ST: description: USB_DEVICE_OUT_EP2_ST_REG. fields: - name: OUT_EP2_STATE description: State of OUT Endpoint 2. bit_offset: 0 bit_size: 2 - name: OUT_EP2_WR_ADDR description: Write data address of OUT endpoint 2. When USB_DEVICE_SERIAL_OUT_RECV_PKT_INT is detected, there are USB_DEVICE_OUT_EP2_WR_ADDR-2 bytes data in OUT EP2. bit_offset: 2 bit_size: 7 - name: OUT_EP2_RD_ADDR description: Read data address of OUT endpoint 2. bit_offset: 9 bit_size: 7 fieldset/TEST: description: USB_DEVICE_TEST_REG. fields: - name: ENABLE description: Enable test of the USB pad. bit_offset: 0 bit_size: 1 - name: USB_OE description: USB pad oen in test. bit_offset: 1 bit_size: 1 - name: TX_DP description: USB D+ tx value in test. bit_offset: 2 bit_size: 1 - name: TX_DM description: USB D- tx value in test. bit_offset: 3 bit_size: 1