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

Subversion Repositories pci

[/] [pci/] [tags/] [asyst_2/] [rtl/] [verilog/] [pci_wbs_wbb3_2_wbb2.v] - Diff between revs 110 and 126

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

Rev 110 Rev 126
Line 38... Line 38...
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
//
//
// CVS Revision History
// CVS Revision History
//
//
// $Log: not supported by cvs2svn $
// $Log: not supported by cvs2svn $
 
// Revision 1.1  2003/08/12 13:58:19  mihad
 
// Module that converts slave WISHBONE B3 accesses to
 
// WISHBONE B2 accesses with CAB.
 
//
//
//
 
 
module pci_wbs_wbb3_2_wbb2
module pci_wbs_wbb3_2_wbb2
(
(
    wb_clk_i,
    wb_clk_i,
Line 136... Line 140...
 
 
        // 1st condition - pci bridge is signaling an error
        // 1st condition - pci bridge is signaling an error
        end_cycle[0] = wbs_err_i ;
        end_cycle[0] = wbs_err_i ;
 
 
        // 2nd condition - pci bridge is signaling a retry - that can be ignored via the defines
        // 2nd condition - pci bridge is signaling a retry - that can be ignored via the defines
        end_cycle[1] = wbs_rty_i `ifdef PCI_WBS_B3_RTY_DISABLE & 1'b0 `endif ;
        end_cycle[1] = wbs_rty_i
 
            `ifdef PCI_WBS_B3_RTY_DISABLE
 
                & 1'b0
 
            `endif
 
                ;
 
 
        // 3rd condition - end non burst cycles as soon as pci bridge response is received
        // 3rd condition - end non burst cycles as soon as pci bridge response is received
        end_cycle[2] = wbs_cyc_i & wbs_stb_i & wbs_ack_i & ~wbs_cab_o ;
        end_cycle[2] = wbs_cyc_i & wbs_stb_i & wbs_ack_i & ~wbs_cab_o ;
 
 
        // 4th condition - end cycle when acknowledge and strobe are both asserted and master is signaling end of burst
        // 4th condition - end cycle when acknowledge and strobe are both asserted and master is signaling end of burst
        end_cycle[3] = wbs_cyc_i & wbs_stb_i & wbs_ack_o & wbs_cab_o & (wbs_cti_i == 3'b111) ;
        end_cycle[3] = wbs_cyc_i & wbs_stb_i & wbs_ack_o & wbs_cab_o & (wbs_cti_i == 3'b111) ;
 
 
        if (wbs_dat_i_o_valid)
        if (wbs_dat_i_o_valid)
        begin
        begin
            if (wbs_ack_i | wbs_err_i `ifdef PCI_WBS_B3_RTY_DISABLE `else | wbs_rty_i `endif)
            if (wbs_ack_i | wbs_err_i
 
                `ifdef PCI_WBS_B3_RTY_DISABLE
 
                `else
 
                    | wbs_rty_i
 
                `endif
 
                    )
                wbs_dat_i_o_valid <= 1'b0 ;
                wbs_dat_i_o_valid <= 1'b0 ;
        end
        end
        else
        else
        begin
        begin
            if (wbs_cyc_i & wbs_stb_i & wbs_we_i & ~wbs_ack_o & ~wbs_err_o & ~wbs_rty_o)
            if (wbs_cyc_i & wbs_stb_i & wbs_we_i & ~wbs_ack_o & ~wbs_err_o & ~wbs_rty_o)
Line 246... Line 259...
assign wbs_stb_o = (wbs_cyc_o & ~wbs_we_o & ~wbs_ack_o & ~wbs_err_o & ~wbs_rty_o) |
assign wbs_stb_o = (wbs_cyc_o & ~wbs_we_o & ~wbs_ack_o & ~wbs_err_o & ~wbs_rty_o) |
                   (wbs_cyc_o & wbs_stb_i & wbs_cab_o & ~wbs_we_o & wbs_cti_i !== 3'b111) |
                   (wbs_cyc_o & wbs_stb_i & wbs_cab_o & ~wbs_we_o & wbs_cti_i !== 3'b111) |
                   (wbs_cyc_o & wbs_we_o & wbs_dat_i_o_valid) ;
                   (wbs_cyc_o & wbs_we_o & wbs_dat_i_o_valid) ;
 
 
endmodule
endmodule
 No newline at end of file
 No newline at end of file
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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