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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or1k_startup/] [rtl/] [verilog/] [OR1K_startup.v] - Blame information for rev 868

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 marcus.erl
//////////////////////////////////////////////////////////////////////
2
////                                                              ////
3
////  OR1K_startup                                                ////
4
////                                                              ////
5
////  This file is part of the OR1K startup IP core project       ////
6
////  http://www.opencores.org/                                   ////
7
////                                                              ////
8
////  Author(s):                                                  ////
9
////      - Michael Unneback (unneback@opencores.org)             ////
10
////                                                              ////
11
////  All additional information is avaliable in the Readme.txt   ////
12
////  file.                                                       ////
13
////                                                              ////
14
//////////////////////////////////////////////////////////////////////
15
////                                                              ////
16
//// Copyright (C) 2009 Authors                                   ////
17
////                                                              ////
18
//// This source file may be used and distributed without         ////
19
//// restriction provided that this copyright statement is not    ////
20
//// removed from the file and that any derivative work contains  ////
21
//// the original copyright notice and the associated disclaimer. ////
22
////                                                              ////
23
//// This source file is free software; you can redistribute it   ////
24
//// and/or modify it under the terms of the GNU Lesser General   ////
25
//// Public License as published by the Free Software Foundation; ////
26
//// either version 2.1 of the License, or (at your option) any   ////
27
//// later version.                                               ////
28
////                                                              ////
29
//// This source is distributed in the hope that it will be       ////
30
//// useful, but WITHOUT ANY WARRANTY; without even the implied   ////
31
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      ////
32
//// PURPOSE.  See the GNU Lesser General Public License for more ////
33
//// details.                                                     ////
34
////                                                              ////
35
//// You should have received a copy of the GNU Lesser General    ////
36
//// Public License along with this source; if not, download it   ////
37
//// from http://www.opencores.org/lgpl.shtml                     ////
38
////                                                              ////
39
//////////////////////////////////////////////////////////////////////
40
module OR1K_startup
41
  (
42
    input [6:2]       wb_adr_i,
43
    input             wb_stb_i,
44
    input             wb_cyc_i,
45
    output reg [31:0] wb_dat_o,
46
    output reg        wb_ack_o,
47
    input             wb_clk,
48
    input             wb_rst
49
   );
50
   always @ (posedge wb_clk or posedge wb_rst)
51
     if (wb_rst)
52
       wb_dat_o <= 32'h15000000;
53
     else
54
       case (wb_adr_i)
55
 
56
          1 : wb_dat_o <= 32'hA8200000;
57
          2 : wb_dat_o <= 32'h1880B000;
58
          3 : wb_dat_o <= 32'hA8A00520;
59
          4 : wb_dat_o <= 32'hA8600001;
60
          5 : wb_dat_o <= 32'h04000014;
61
          6 : wb_dat_o <= 32'hD4041818;
62
          7 : wb_dat_o <= 32'h04000012;
63
          8 : wb_dat_o <= 32'hD4040000;
64
          9 : wb_dat_o <= 32'hE0431804;
65
         10 : wb_dat_o <= 32'h0400000F;
66
         11 : wb_dat_o <= 32'h9C210008;
67
         12 : wb_dat_o <= 32'h0400000D;
68
         13 : wb_dat_o <= 32'hE1031804;
69
         14 : wb_dat_o <= 32'hE4080000;
70
         15 : wb_dat_o <= 32'h0FFFFFFB;
71
         16 : wb_dat_o <= 32'hD4081800;
72
         17 : wb_dat_o <= 32'h04000008;
73
         18 : wb_dat_o <= 32'h9C210004;
74
         19 : wb_dat_o <= 32'hD4011800;
75
         20 : wb_dat_o <= 32'hE4011000;
76
         21 : wb_dat_o <= 32'h0FFFFFFC;
77
         22 : wb_dat_o <= 32'hA8C00100;
78
         23 : wb_dat_o <= 32'h44003000;
79
         24 : wb_dat_o <= 32'hD4040018;
80
         25 : wb_dat_o <= 32'hD4042810;
81
         26 : wb_dat_o <= 32'h84640010;
82
         27 : wb_dat_o <= 32'hBC030520;
83
         28 : wb_dat_o <= 32'h13FFFFFE;
84
         29 : wb_dat_o <= 32'h15000000;
85
         30 : wb_dat_o <= 32'h44004800;
86
         31 : wb_dat_o <= 32'h84640000;
87
       endcase
88
   always @ (posedge wb_clk or posedge wb_rst)
89
     if (wb_rst)
90
       wb_ack_o <= 1'b0;
91
     else
92
       wb_ack_o <= wb_stb_i & wb_cyc_i & !wb_ack_o;
93
endmodule

powered by: WebSVN 2.1.0

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