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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [boards/] [actel/] [ordb1a3pe1500/] [rtl/] [verilog/] [versatile_mem_ctrl/] [README] - Blame information for rev 408

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 408 julius
                        Versatile memory controller RTL
2
 
3
Project URL: http://opencores.org/project,versatile_mem_ctrl
4
 
5
Currently this is only configured and used as an SDRAM controller.
6
 
7
Configure SDRAM part size:
8
 
9
Uncomment one of the following defines in rtl/verilog/sdr_16_defines.v:
10
 
11
`define MT48LC32M16   // 64MB part
12
`define MT48LC16M16   // 32MB part
13
`define MT48LC4M16    //  8MB part
14
 
15
This will enable the appropriate column and row bank sizes.
16
 
17
When one of these defines is changed, running "make all" in this path will
18
regenerate it. Be warned that several tools and scripts are required to
19
regenerate the memory controller module.
20
 
21
Tools required to re-generate memory controller:
22
 
23
subversion:
24
        Presumably this is already installed.
25
 
26
excel2csv:
27
 
28
CentOS/RedHat:
29
 
30
     I ran into some problems just trying to update Perl, and it turns out the
31
     ftp download program Perl uses is called 'ncftpget' which isn't on CentOS
32
     by default.
33
 
34
     I followed this guide,
35
     http://www.question-defense.com/2010/01/25/install-ncftp-ncftpget-ncftpput-using-yum-on-centos-linux-server
36
     to install it with the following commands:
37
 
38
     $ sudo rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
39
 
40
     $ yum list *NCFTP*
41
 
42
     $ sudo yum install ncftp
43
 
44
Ubuntu:
45
 
46
     Under Ubuntu these packages are availble (if not already installed) in the
47
     ncftp package in apt, installable with the following command:
48
 
49
     $ sudo apt-get install ncftp
50
 
51
 
52
Configure Perl's CPAN:
53
 
54
     First tried to configure CPAN according to this:
55
     http://www.d3dw8.com/code/configuring_cpan.html
56
 
57
 
58
     Then I launched CPAN and updated it (following that first guide):
59
 
60
     $ sudo perl -MCPAN -e shel
61
 
62
     cpan> o conf prerequisites_policy ask
63
 
64
     cpan> o conf make_install_arg   UNINST=1
65
 
66
     cpan> o conf commit
67
 
68
     cpan> quit
69
 
70
     $ sudo perl -MCPAN -e shell
71
 
72
     cpan> o conf init
73
 
74
     This will then spit out a bunch of questions - just press enter for them
75
     all (defaults are fine), but make sure no other programs are missing (it
76
     starts asking for gzip, tar, etc. this is when I spotted ncftpget was
77
     missing.)
78
 
79
     (Sweden is country 28 when it asks, and then I put just '1' when it asked
80
     me to select the mirror URLs).
81
 
82
     cpan> quit
83
 
84
     Finally, we can update CPAN:
85
 
86
     $ sudo perl -MCPAN -e shell
87
 
88
     cpan> install Bundle::CPAN
89
 
90
     
91
 
92
     It then paused near this message:
93
 
94
     ERRORS/WARNINGS FOUND IN PREREQUISITES.  You may wish to install the
95
     versions of the modules indicated above before proceeding with this
96
     installation
97
 
98
       Shall I follow them and prepend them to the queue
99
       of modules we are processing right now? [yes]
100
 
101
     ... and I pressed enter (for yes.)
102
 
103
     It then did it again, and I pressed enter for yes, again...
104
 
105
     ... and another yes ...
106
 
107
     ... and then something asking if we should exit a test (i just pressed
108
     enter) ...
109
 
110
     (man this is taking forever)
111
 
112
     ... finally back to the cpan> prompt...
113
 
114
     To install the prerequisities for the excel2csv package I did the
115
     following:
116
 
117
     cpan> install Getopt::Long
118
 
119
     cpan> install Pod::Usage
120
 
121
     cpan> install Spreadsheet::ParseExcel
122
 
123
     ... this needed to install some other prerequisites ....
124
 
125
     cpan> quit
126
 
127
     CPAN mess finished!
128
 
129
Now we can finally install excel2csv:
130
 
131
    $ wget http://search.cpan.org/CPAN/authors/id/L/LE/LEOCHARRE/excel2csv-1.01.tar.gz
132
    $ tar xzf excel2csv-1.01.tar.gz
133
    $ cd excel2csv-1.01
134
    excel2csv-1.01$ perl Makefile.PL
135
    excel2csv-1.01$ make
136
    excel2csv-1.01$ sudo make install
137
 
138
PHP CLI:
139
 
140
    Some other part of the makefile requires the PHP command line interface
141
    (CLI) be installed.
142
 
143
    On a 64-bit CentOS/RedHad this was done with:
144
 
145
    $ sudo yum install php-cli.x86_64
146
 
147
    On Ubuntu 9.10 this was done with:
148
 
149
    $ sudo apt-get install php5-cli
150
 
151
Perl-Verilog:
152
 
153
    This Perl Verilog HDL preprocessor tool is required, also.
154
 
155
    On a 64-bit CentOS/RedHad this was done with:
156
 
157
    $ sudo yum install perl-Verilog-Perl.x86_64
158
 
159
    On Ubuntu 9.10 this was done with:
160
 
161
    $ sudo apt-get install libverilog-perl
162
 
163
 
164
Once these tools are installed the versatile memory controller project can
165
be compiled.
166
 
167
The makefile and scripts here usually perform an automatic checkout and compile
168
of the design, however there have been modifications to the project's
169
(versatile_mem_ctrl) RTL that are yet to be re-contributed to the design, and
170
so we will disable automatic-checking out and building for now.
171
 

powered by: WebSVN 2.1.0

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