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

Subversion Repositories aemb

[/] [aemb/] [trunk/] [rtl/] [verilog/] [aeMB2_dwbif.v] - Diff between revs 131 and 134

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

Rev 131 Rev 134
Line 1... Line 1...
/* $Id: aeMB2_dwbif.v,v 1.5 2008-04-26 01:09:05 sybreon Exp $
/* $Id: aeMB2_dwbif.v,v 1.6 2008-04-26 17:57:43 sybreon Exp $
**
**
** AEMB2 EDK 6.2 COMPATIBLE CORE
** AEMB2 EDK 6.2 COMPATIBLE CORE
** Copyright (C) 2004-2008 Shawn Tan <shawn.tan@aeste.net>
** Copyright (C) 2004-2008 Shawn Tan <shawn.tan@aeste.net>
**
**
** This file is part of AEMB.
** This file is part of AEMB.
Line 127... Line 127...
                                // dwb_mx latch the correct bytes
                                // dwb_mx latch the correct bytes
                                // depending on dwb_sel_o.
                                // depending on dwb_sel_o.
 
 
        dwb_wre_o <= #1 opc_of[2]; // SXX
        dwb_wre_o <= #1 opc_of[2]; // SXX
 
 
        dwb_mx <= #1 (dwb_ack_i) ? dwb_dat_i : dwb_lat;
        dwb_mx <= #1 (dwb_ack_i) ? dwb_dat_i : dwb_lat; // Latch input
 
 
        case (wSEL)
        case (wSEL) // Latch output
          // 32'bit
          // 32'bit
          4'h8: dwb_sel_o <= #1 4'hF;
          4'h8: dwb_sel_o <= #1 4'hF;
          // 16'bit
          // 16'bit
          4'h4: dwb_sel_o <= #1 4'hC;
          4'h4: dwb_sel_o <= #1 4'hC;
          4'h6: dwb_sel_o <= #1 4'h3;
          4'h6: dwb_sel_o <= #1 4'h3;
          // 8'bit
          // 8'bit
          4'h0: dwb_sel_o <= #1 4'h8;
          4'h0: dwb_sel_o <= #1 4'h8;
          4'h1: dwb_sel_o <= #1 4'h4;
          4'h1: dwb_sel_o <= #1 4'h4;
          4'h2: dwb_sel_o <= #1 4'h2;
          4'h2: dwb_sel_o <= #1 4'h2;
          4'h3: dwb_sel_o <= #1 4'h1;
          4'h3: dwb_sel_o <= #1 4'h1;
 
          // XSL bus
 
          4'hC, 4'hD, 4'hE, 4'hF:
 
            dwb_sel_o <= #1 4'h0;
          // TODO: ILLEGAL
          // TODO: ILLEGAL
          default: dwb_sel_o <= #1 4'hX;
          default: dwb_sel_o <= #1 4'hX;
        endcase // case (wSEL)
        endcase // case (wSEL)
     end // if (dena)
     end // if (dena)
 
 
Line 181... Line 184...
 
 
endmodule // aeMB2_dwbif
endmodule // aeMB2_dwbif
 
 
/*
/*
 $Log: not supported by cvs2svn $
 $Log: not supported by cvs2svn $
 
 Revision 1.5  2008/04/26 01:09:05  sybreon
 
 Passes basic tests. Minor documentation changes to make it compatible with iverilog pre-processor.
 
 
 Revision 1.4  2008/04/23 14:18:52  sybreon
 Revision 1.4  2008/04/23 14:18:52  sybreon
 Fixed pipelined latching of data bug.
 Fixed pipelined latching of data bug.
 
 
 Revision 1.3  2008/04/21 12:11:38  sybreon
 Revision 1.3  2008/04/21 12:11:38  sybreon
 Passes arithmetic tests with single thread.
 Passes arithmetic tests with single thread.

powered by: WebSVN 2.1.0

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