1
0
mirror of https://github.com/wfjm/w11.git synced 2026-05-05 23:55:01 +00:00
Files
wfjm.w11/tools/tcl/ibd_lp11/util.tcl
wfjm 2c049efbcf consolidate DL,LP,PC after lessons learned in DZ
- ibdr_{dl,lp,pc}11_buf: size->fuse rename; re-organize rlim handling
- ibd_{dl,lp,pc}11/util.tcl: size->fuse rename
- tbench/{dl,lp,pc}11/test_*.tcl: size->fuse rename
- librw11/Rw11CntlDL11: size->fuse rename; use unit.StatInc[RT]x
- librw11/Rw11Cntl{LP,LP}11: size->fuse rename
2019-06-01 09:19:02 +02:00

49 lines
1.5 KiB
Tcl

# $Id: util.tcl 1155 2019-05-31 06:38:06Z mueller $
#
# Copyright 2015-2019 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 3, 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
# 2019-05-30 1155 1.1.1 size->fuse rename
# 2019-03-17 1123 1.1.1 add print formats for RBUF; add RCSR.rlim
# 2019-03-09 1120 1.1 add setup proc; add regdsc for RCSR,RBUF
# 2015-12-26 719 1.0 Initial version
#
package provide ibd_lp11 1.0
package require rlink
package require rw11util
package require rw11
namespace eval ibd_lp11 {
#
# setup register descriptions for ibd_lp11 ---------------------------------
#
regdsc CSR {err 15} {done 7} {ie 6}
regdsc RCSR {err 15} {rlim 14 3} {type 10 3} {done 7} {ie 6} {ir 5}
regdsc RBUF {val 15} {fuse 14 7 "d"} {data 6 7 "o"}
rw11util::regmap_add ibd_lp11 lp?.csr {l? CSR r? RCSR}
rw11util::regmap_add ibd_lp11 lp?.buf {r? RBUF}
variable ANUM 8
#
# setup: create controller with default attributes -------------------------
#
proc setup {{cpu "cpu0"}} {
return [rw11::setup_cntl $cpu "lp11" "lpa"]
}
}