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

Subversion Repositories wb_lpc

[/] [wb_lpc/] [trunk/] [rtl/] [verilog/] [wb_lpc_host.v] - Diff between revs 3 and 5

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

Rev 3 Rev 5
Line 1... Line 1...
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
////                                                              ////
////                                                              ////
////  $Id: wb_lpc_host.v,v 1.1 2008-03-02 20:46:40 hharte Exp $
////  $Id: wb_lpc_host.v,v 1.2 2008-03-05 05:50:25 hharte Exp $   ////
////  wb_lpc_host.v - Wishbone Slave to LPC Host Bridge           ////
////  wb_lpc_host.v - Wishbone Slave to LPC Host Bridge           ////
////                                                              ////
////                                                              ////
////  This file is part of the Wishbone LPC Bridge project        ////
////  This file is part of the Wishbone LPC Bridge project        ////
////  http://www.opencores.org/projects/wb_lpc/                   ////
////  http://www.opencores.org/projects/wb_lpc/                   ////
////                                                              ////
////                                                              ////
Line 334... Line 334...
                                                        state <= `LPC_ST_P_DATA;
                                                        state <= `LPC_ST_P_DATA;
                                        end
                                        end
                                `LPC_ST_P_TAR1:
                                `LPC_ST_P_TAR1:
                                        begin
                                        begin
                                                lad_oe <= 1'b0;
                                                lad_oe <= 1'b0;
//                                              state <= `LPC_ST_P_TAR2;
 
//                                      end
 
//                              `LPC_ST_P_TAR2:
 
//                                      begin
 
//                                              lad_oe <= 1'b0;         // float LAD
 
                                                if(byte_cnt == xfr_len) begin
                                                if(byte_cnt == xfr_len) begin
                                                        state <= `LPC_ST_IDLE;
                            state <= `LPC_ST_WB_RETIRE;
                                                        wbs_ack_o <= wbs_acc;
                                                        wbs_ack_o <= wbs_acc;
                                                end
                                                end
                                                else begin
                                                else begin
                                                        if(wbs_wr) begin        // DMA READ (Host to Peripheral)
                                                        if(wbs_wr) begin        // DMA READ (Host to Peripheral)
                                                                state <= `LPC_ST_H_DATA;
                                                                state <= `LPC_ST_H_DATA;
Line 352... Line 347...
                                                        else begin      // unhandled READ case
                                                        else begin      // unhandled READ case
                                                                state <= `LPC_ST_IDLE;
                                                                state <= `LPC_ST_IDLE;
                                                        end
                                                        end
                                                end
                                                end
                                        end
                                        end
 
                `LPC_ST_WB_RETIRE:
 
                    begin
 
                        wbs_ack_o <= 1'b0;
 
                        if(wbs_acc) begin
 
                            state <= `LPC_ST_WB_RETIRE;
 
                        end
 
                        else begin
 
                            state <= `LPC_ST_IDLE;
 
                        end
 
                    end
                        endcase
                        endcase
                end
                end
 
 
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.