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

Subversion Repositories socgen

[/] [socgen/] [trunk/] [common/] [opencores.org/] [cde/] [ip/] [sram/] [rtl/] [verilog/] [lint/] [sram_word.v] - Diff between revs 131 and 134

Only display areas with differences | Details | Blame | View Log

Rev 131 Rev 134
/**********************************************************************/
/**********************************************************************/
/*                                                                    */
/*                                                                    */
/*                                                                    */
/*                                                                    */
/*   Copyright (c) 2012 Ouabache Design Works                         */
/*   Copyright (c) 2012 Ouabache Design Works                         */
/*                                                                    */
/*                                                                    */
/*          All Rights Reserved Worldwide                             */
/*          All Rights Reserved Worldwide                             */
/*                                                                    */
/*                                                                    */
/*   Licensed under the Apache License,Version2.0 (the'License');     */
/*   Licensed under the Apache License,Version2.0 (the'License');     */
/*   you may not use this file except in compliance with the License. */
/*   you may not use this file except in compliance with the License. */
/*   You may obtain a copy of the License at                          */
/*   You may obtain a copy of the License at                          */
/*                                                                    */
/*                                                                    */
/*       http://www.apache.org/licenses/LICENSE-2.0                   */
/*       http://www.apache.org/licenses/LICENSE-2.0                   */
/*                                                                    */
/*                                                                    */
/*   Unless required by applicable law or agreed to in                */
/*   Unless required by applicable law or agreed to in                */
/*   writing, software distributed under the License is               */
/*   writing, software distributed under the License is               */
/*   distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES              */
/*   distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES              */
/*   OR CONDITIONS OF ANY KIND, either express or implied.            */
/*   OR CONDITIONS OF ANY KIND, either express or implied.            */
/*   See the License for the specific language governing              */
/*   See the License for the specific language governing              */
/*   permissions and limitations under the License.                   */
/*   permissions and limitations under the License.                   */
/**********************************************************************/
/**********************************************************************/
 module
 module
  cde_sram_word
  cde_sram_word
    #( parameter
    #( parameter
      ADDR=10,
      ADDR=10,
      WORDS=1024,
      WORDS=1024,
      WRITETHRU=0,
      WRITETHRU=0
      DEFAULT={16'hffff},
     )
      INIT_FILE="NONE")
 
     (
     (
 input wire               clk,
 input wire               clk,
 input wire               cs,
 input wire               cs,
 input wire               rd,
 input wire               rd,
 input wire               wr,
 input wire               wr,
 input wire [ ADDR-1 : 0] addr,
 input wire [ ADDR-1 : 0] addr,
 input wire [ 15 : 0]      wdata,
 input wire [ 15 : 0]      wdata,
 input wire [  1 : 0]     be,
 input wire [  1 : 0]     be,
 output reg [ 15 : 0]      rdata);
 output reg [ 15 : 0]      rdata);
 
 
  always@(posedge clk)
  always@(posedge clk)
        if( rd && cs ) rdata             <= wdata  ;
        if( rd && cs ) rdata             <= wdata  ;
        else           rdata             <= DEFAULT;
        else           rdata             <= 16'hffff;
 
 
 
 
  endmodule
  endmodule
 
 

powered by: WebSVN 2.1.0

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