1
0
mirror of https://github.com/wfjm/w11.git synced 2026-04-26 12:18:15 +00:00
Files
wfjm.w11/tools/tcl/rbbram/util.tcl
Walter F.J. Mueller 509c3719bd integrate rbus monitor in w11 shell; setup procs idempotent
- RlinkConnect: add rbus monitor probe, add HasRbmon()
- RtclRlinkConnect: M_amap: -testname opt addr check; add hasrbmon get
- RtclRw11Cpu: M_(imap|rmap): -testname optional addr check
- ti_rri: setup rbus monitor if detected
- rw11/shell.tcl: integrate rbmon: add .rme,.rmd,.rmf,.rml
- ibd_ibmon/util.tcl: setup: now idempotent; move out imap_reg2addr
- rbmoni/util.tcl: setup: now idempotent; add procs filter,rme,rmf
- rlink/util.tcl: add amap_reg2addr
- rw11/util.tcl: move in imap_reg2addr; add imap_range2addr
- rw11/shell.tcl: integrate rbmon: add .rme,.rmd,.rmf,.rml
- rw11/dmhbpt.tcl: hb_set: use imap_range2addr, allow regnam and range
- */util.tcl: setup: now idempotent
2017-04-22 15:33:04 +02:00

43 lines
1.3 KiB
Tcl

# $Id: util.tcl 883 2017-04-22 11:57:38Z mueller $
#
# Copyright 2011-2017 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
#
# This program is free software; you may redistribute and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation, either version 2, or at your option any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for complete details.
#
# Revision History:
# Date Rev Version Comment
# 2017-04-22 883 2.0.1 setup: now idempotent
# 2014-11-09 603 2.0 use rlink v4 address layout
# 2011-03-19 372 1.0 Initial version
#
package provide rbbram 1.0
namespace eval rbbram {
#
# setup register descriptions for rbd_bram
#
regdsc CNTL {nbusy 15 6} {addr 9 10}
#
# setup: amap definitions for rbd_bram
#
proc setup {base} {
if {[rlc amap -testname br.cntl $base]} {return ""}
rlc amap -insert br.cntl [expr {$base + 0x00}]
rlc amap -insert br.data [expr {$base + 0x01}]
}
#
# init: reset rbd_bram (clear cntl register)
#
proc init {} {
rlc exec -wreg br.cntl 0x0000
}
}