1
0
mirror of https://github.com/wfjm/w11.git synced 2026-02-25 16:50:00 +00:00
Files
wfjm.w11/tools/tcl/rbbram/util.tcl
Walter F.J. Mueller d87ac86f53 - migrate to rlink protocol version 4
- Goals for rlink v4
    - 16 bit addresses (instead of 8 bit)
    - more robust encoding, support for error recovery at transport level
    - add features to reduce round trips
      - improved attention handling
      - new 'list abort' command
  - For further details see README_Rlink_V4.txt
- use own C++ based tcl shell tclshcpp instead of tclsh
2014-12-20 16:39:52 +00:00

41 lines
1.2 KiB
Tcl

# $Id: util.tcl 603 2014-11-09 22:50:26Z mueller $
#
# Copyright 2011-2014 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
# 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} {
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
}
}