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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.61/] [tools/] [tcl/] [rbbram/] [util.tcl] - Blame information for rev 26

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 21 wfjm
# $Id: util.tcl 516 2013-05-05 21:24:52Z mueller $
2 10 wfjm
#
3 21 wfjm
# Copyright 2011-2013 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4 10 wfjm
#
5
# This program is free software; you may redistribute and/or modify it under
6
# the terms of the GNU General Public License as published by the Free
7
# Software Foundation, either version 2, or at your option any later version.
8
#
9
# This program is distributed in the hope that it will be useful, but
10
# WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
11
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12
# for complete details.
13
#
14
#  Revision History:
15
# Date         Rev Version  Comment
16 11 wfjm
# 2011-03-19   372   1.0    Initial version
17 10 wfjm
#
18
 
19
package provide rbbram 1.0
20
 
21
namespace eval rbbram {
22
  #
23
  # setup register descriptions for rbd_bram
24
  #
25
  regdsc CNTL {nbusy 15 6} {addr 9 10}
26
  #
27
  # setup: amap definitions for rbd_bram
28
  # 
29
  proc setup {{base 0x00f4}} {
30 21 wfjm
    rlc amap -insert br.cntl [expr {$base + 0x00}]
31
    rlc amap -insert br.data [expr {$base + 0x01}]
32 10 wfjm
  }
33
  #
34
  # init: reset rbd_bram (clear cntl register)
35
  # 
36
  proc init {} {
37
    rlc exec -wreg br.cntl 0x0000
38
  }
39
}

powered by: WebSVN 2.1.0

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