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

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [fpga/] [altera_de0_nano_soc/] [doc/] [Terasic/] [DE0_NANO_SOC/] [Demonstrations/] [FPGA/] [DE0_NANO_SOC_ADC/] [DE0_NANO_SOC_QSYS/] [synthesis/] [submodules/] [DE0_NANO_SOC_QSYS_onchip_memory2.v] - Blame information for rev 221

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 221 olivier.gi
//Legal Notice: (C)2014 Altera Corporation. All rights reserved.  Your
2
//use of Altera Corporation's design tools, logic functions and other
3
//software and tools, and its AMPP partner logic functions, and any
4
//output files any of the foregoing (including device programming or
5
//simulation files), and any associated documentation or information are
6
//expressly subject to the terms and conditions of the Altera Program
7
//License Subscription Agreement or other applicable license agreement,
8
//including, without limitation, that your use is for the sole purpose
9
//of programming logic devices manufactured by Altera and sold by Altera
10
//or its authorized distributors.  Please refer to the applicable
11
//agreement for further details.
12
 
13
// synthesis translate_off
14
`timescale 1ns / 1ps
15
// synthesis translate_on
16
 
17
// turn off superfluous verilog processor warnings 
18
// altera message_level Level1 
19
// altera message_off 10034 10035 10036 10037 10230 10240 10030 
20
 
21
module DE0_NANO_SOC_QSYS_onchip_memory2 (
22
                                          // inputs:
23
                                           address,
24
                                           byteenable,
25
                                           chipselect,
26
                                           clk,
27
                                           clken,
28
                                           reset,
29
                                           reset_req,
30
                                           write,
31
                                           writedata,
32
 
33
                                          // outputs:
34
                                           readdata
35
                                        )
36
;
37
 
38
  parameter INIT_FILE = "DE0_NANO_SOC_QSYS_onchip_memory2.hex";
39
 
40
 
41
  output  [ 31: 0] readdata;
42
  input   [ 15: 0] address;
43
  input   [  3: 0] byteenable;
44
  input            chipselect;
45
  input            clk;
46
  input            clken;
47
  input            reset;
48
  input            reset_req;
49
  input            write;
50
  input   [ 31: 0] writedata;
51
 
52
  wire             clocken0;
53
  wire    [ 31: 0] readdata;
54
  wire             wren;
55
  assign wren = chipselect & write;
56
  assign clocken0 = clken & ~reset_req;
57
  altsyncram the_altsyncram
58
    (
59
      .address_a (address),
60
      .byteena_a (byteenable),
61
      .clock0 (clk),
62
      .clocken0 (clocken0),
63
      .data_a (writedata),
64
      .q_a (readdata),
65
      .wren_a (wren)
66
    );
67
 
68
  defparam the_altsyncram.byte_size = 8,
69
           the_altsyncram.init_file = INIT_FILE,
70
           the_altsyncram.lpm_type = "altsyncram",
71
           the_altsyncram.maximum_depth = 40000,
72
           the_altsyncram.numwords_a = 40000,
73
           the_altsyncram.operation_mode = "SINGLE_PORT",
74
           the_altsyncram.outdata_reg_a = "UNREGISTERED",
75
           the_altsyncram.ram_block_type = "AUTO",
76
           the_altsyncram.read_during_write_mode_mixed_ports = "DONT_CARE",
77
           the_altsyncram.width_a = 32,
78
           the_altsyncram.width_byteena_a = 4,
79
           the_altsyncram.widthad_a = 16;
80
 
81
  //s1, which is an e_avalon_slave
82
  //s2, which is an e_avalon_slave
83
 
84
endmodule
85
 

powered by: WebSVN 2.1.0

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