OpenCores
URL https://opencores.org/ocsvn/apbi2c/apbi2c/trunk

Subversion Repositories apbi2c

[/] [apbi2c/] [trunk/] [rtl/] [i2c.v] - Diff between revs 2 and 14

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 2 Rev 14
Line 122... Line 122...
 
 
        wire error;
        wire error;
        wire tx_empty;
        wire tx_empty;
        wire rx_empty;
        wire rx_empty;
 
 
 
        wire w_pwrite;
 
        wire w_full;
 
        wire w_full_tx;
 
 
 
        assign w_pwrite = (PWRITE == 1'b0)?1'b1:1'b0;
 
 
 
 
 
 
        //CONECTIONS WITH FIFO TX
        //CONECTIONS WITH FIFO TX
        fifo DUT_FIFO_TX (
        fifo DUT_FIFO_TX (
                                .clock(PCLK),
                                .clock(PCLK),
                                .reset(RESET_N),
                                .reset(RESET_N),
                                .wr_en(TX_WRITE_ENA),
                                .wr_en(TX_WRITE_ENA),
                                .rd_en(TX_RD_EN),
                                .rd_en(TX_RD_EN),
                                .data_in(TX_DATA_IN),
                                .data_in(TX_DATA_IN),
                                .f_full(TX_F_FULL),
                                .f_full(w_full),
                                .f_empty(TX_F_EMPTY),
                                .f_empty(TX_F_EMPTY),
                                .data_out(TX_DATA_OUT)
                                .data_out(TX_DATA_OUT)
 
 
                         );
                         );
 
 
 
 
 
        and(w_full_tx,w_pwrite,w_full);
 
 
 
        assign TX_F_FULL = w_full_tx;
 
 
        //CONECTIONS WITH FIFO RX
        //CONECTIONS WITH FIFO RX
        fifo DUT_FIFO_RX (
        fifo DUT_FIFO_RX (
                                .clock(PCLK),
                                .clock(PCLK),
                                .reset(RESET_N),
                                .reset(RESET_N),
                                .wr_en(RX_WRITE_ENA),
                                .wr_en(RX_WRITE_ENA),

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.