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

Subversion Repositories wb_size_bridge

[/] [wb_size_bridge/] [trunk/] [src/] [asram_if.v] - Diff between revs 2 and 4

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

Rev 2 Rev 4
Line 1... Line 1...
//
//////////////////////////////////////////////////////////////////////
//
////                                                              ////
//
//// Copyright (C) 2009 Authors and OPENCORES.ORG                 ////
 
////                                                              ////
 
//// This source file may be used and distributed without         ////
 
//// restriction provided that this copyright statement is not    ////
 
//// removed from the file and that any derivative work contains  ////
 
//// the original copyright notice and the associated disclaimer. ////
 
////                                                              ////
 
//// This source file is free software; you can redistribute it   ////
 
//// and/or modify it under the terms of the GNU Lesser General   ////
 
//// Public License as published by the Free Software Foundation; ////
 
//// either version 2.1 of the License, or (at your option) any   ////
 
//// later version.                                               ////
 
////                                                              ////
 
//// This source is distributed in the hope that it will be       ////
 
//// useful, but WITHOUT ANY WARRANTY; without even the implied   ////
 
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      ////
 
//// PURPOSE.  See the GNU Lesser General Public License for more ////
 
//// details.                                                     ////
 
////                                                              ////
 
//// You should have received a copy of the GNU Lesser General    ////
 
//// Public License along with this source; if not, download it   ////
 
//// from http://www.opencores.org/lgpl.shtml                     ////
 
////                                                              ////
 
//////////////////////////////////////////////////////////////////////
 
 
module asram_if(
module asram_if(
                  inout   [15:0]  sram_dq,    //  SRAM Data bus 16 Bits
                  inout   [15:0]  sram_dq,    //  SRAM Data bus 16 Bits
                  output  [17:0]  sram_addr,  //  SRAM Address bus 18 Bits
                  output  [17:0]  sram_addr,  //  SRAM Address bus 18 Bits
                  output          sram_ub_n,  //  SRAM High-byte Data Mask
                  output          sram_ub_n,  //  SRAM High-byte Data Mask
Line 71... Line 94...
  assign sram_dq    = wb_lo_we_o ? wb_lo_dat_o : 16'hzz;
  assign sram_dq    = wb_lo_we_o ? wb_lo_dat_o : 16'hzz;
  assign sram_addr  = wb_lo_adr_o[18:1];
  assign sram_addr  = wb_lo_adr_o[18:1];
  assign sram_ub_n  = ~wb_lo_sel_o[1];
  assign sram_ub_n  = ~wb_lo_sel_o[1];
  assign sram_lb_n  = ~wb_lo_sel_o[0];
  assign sram_lb_n  = ~wb_lo_sel_o[0];
  assign sram_we_n  = ~wb_lo_we_o;
  assign sram_we_n  = ~wb_lo_we_o;
//   assign sram_ce_n  = ~(wb_lo_stb_o & wb_lo_cyc_o);
 
  assign sram_ce_n  = 1'b0;
  assign sram_ce_n  = 1'b0;
  assign sram_oe_n  = wb_lo_we_o;
  assign sram_oe_n  = wb_lo_we_o;
 
 
 
 
endmodule
endmodule

powered by: WebSVN 2.1.0

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