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

Subversion Repositories zap

[/] [zap/] [trunk/] [src/] [rtl/] [cpu/] [zap_wb_adapter.v] - Diff between revs 43 and 51

Show entire file | Details | Blame | View Log

Rev 43 Rev 51
Line 205... Line 205...
                begin
                begin
                        // Write a set of reads into the FIFO.
                        // Write a set of reads into the FIFO.
                        if ( I_WB_CTI == CTI_BURST ) // Burst of 4 words. Each word is 4 byte.
                        if ( I_WB_CTI == CTI_BURST ) // Burst of 4 words. Each word is 4 byte.
                        begin
                        begin
                                state_nxt = PRPR_RD_BURST;
                                state_nxt = PRPR_RD_BURST;
                                $display($time, " - %m :: Read burst requested. Base address = %x", I_WB_ADR);
 
                        end
                        end
                        else // Single.
                        else // Single.
                        begin
                        begin
                                state_nxt = PRPR_RD_SINGLE;
                                state_nxt = PRPR_RD_SINGLE;
                        end
                        end
Line 233... Line 232...
        PRPR_RD_BURST: // Write burst read requests into the FIFO.
        PRPR_RD_BURST: // Write burst read requests into the FIFO.
        begin
        begin
                if ( O_WB_ACK )
                if ( O_WB_ACK )
                begin
                begin
                        dnxt = dff + 1'd1;
                        dnxt = dff + 1'd1;
                        $display($time, " - %m :: Early response received for read burst. Data received %x", O_WB_DAT);
 
                end
                end
 
 
                if ( ctr_ff == BURST_LEN * 4 )
                if ( ctr_ff == BURST_LEN * 4 )
                begin
                begin
                        ctr_nxt = 0;
                        ctr_nxt = 0;
Line 253... Line 251...
                                                I_WB_DAT,
                                                I_WB_DAT,
                                                adr,
                                                adr,
                                                ctr_ff == 12 ? 1'd1 : 1'd0,
                                                ctr_ff == 12 ? 1'd1 : 1'd0,
                                                1'd0 };
                                                1'd0 };
                        ctr_nxt = ctr_ff + 4;
                        ctr_nxt = ctr_ff + 4;
 
 
                        $display($time, " - %m :: Read Burst. Writing data SEL = %x DATA = %x ADDR = %x EOB = %x WEN = %x to the FIFO",
 
                        fsm_write_data[69:66], fsm_write_data[65:34], fsm_write_data[33:2], fsm_write_data[1], fsm_write_data[0]);
 
                end
                end
        end
        end
 
 
        WRITE:
        WRITE:
        begin
        begin
Line 290... Line 285...
        WAIT2: // Wait for burst reads to complete.
        WAIT2: // Wait for burst reads to complete.
        begin
        begin
                if ( O_WB_ACK )
                if ( O_WB_ACK )
                begin
                begin
                        dnxt = dff + 1;
                        dnxt = dff + 1;
                        $display($time, " - %m :: Read Burst. ACK sent. Data provided is %x", O_WB_DAT);
 
                end
                end
 
 
                if ( dff == BURST_LEN && !o_wb_stb )
                if ( dff == BURST_LEN && !o_wb_stb )
                begin
                begin
                        state_nxt = IDLE;
                        state_nxt = IDLE;
Line 303... Line 297...
 
 
        endcase
        endcase
end
end
 
 
endmodule
endmodule
 
 
`default_nettype wire
`default_nettype wire
 
 
 No newline at end of file
 No newline at end of file
 
// ----------------------------------------------------------------------------
 
// EOF
 
// ----------------------------------------------------------------------------
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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