Download Master`s thesis
Transcript
The INTR_BIT_CLR signal that goes from APB to I2C domain is implemented to reset the registers (SELECTED_BIT_SET, START_BIT_SET, STOP_BIT_SET, ERR_SET) in the I2C domain. This signal is also resynchronized by two flip flops in the I2C domain to ensure the right function. The INTR_BIT_CLR signal is set active when interrupt register is read by APB master to reset registers in I2C domain that set interrupt signalizing values of I2C communication. The sequence of this steps is described in chapter 4.3.2. 4.5.3 Signals for DFT Signals for DFT are not used in this design. This device is either considered as a hard-macro or as a soft-macro where DFT is implemented on the top-level of the chip. 4.5.4 I2C Slave Default address I2C Slave can have set a default address. This is done by instantiating the module in the design by setting an instantiation parameter. 4.5.5 Changing APB addresses for operations If the user wishes to change the addresses for any APB operation, you can do so in the dp_s_global_consts.v file by changing the values of the constants. The names of constants that need to be changed of each operation are in Table 16. Table 16: Names of constants and their APB functions Default APB address 000 001 010 011 100 APB Constant name PADDR_READ_DATA PADDR_READ_INTR_REG PADDR_ I2C_ADDR PADDR_WRITE_DATA PADDR_WRITE_INTR_MASK Function Read data from FIFO_RX Read interrupt register Changes the I2C Slave address Write data to FIFO_TX Write interrupt mask 4.5.6 Fifos In the beginning I was using FIFO models generated by Xilinx Coregen, I was developing in Xiling ISE so that I would be able to work from home. After migrating the files with RTL to S3 Group environment, I had to use new fifos that were synthesizable. Both TX and RX Fifo were generated by the DesignWare Synopsys tool. There were some challenges and changes with using these fifos, because they have the first data on output right after writing it in the FIFO and not after a request. These fifos also have inverted reset signals and separate signals for full and empty signaling. Changes had to be done to fix these problems and differences before continuing to the next steps. 4.6 RTL code check (Hal) RTL code check is done by Cadence Hal program. This program checks for different conditions and mistakes in the code starting from white spaces that might be 54