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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.74/] [doc/] [README_xadc.txt] - Blame information for rev 38

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 35 wfjm
# $Id: README_xadc.txt 746 2016-03-19 13:08:36Z mueller $
2
 
3
The Artix-7 based designs contain now a module which makes the data of the
4
FPGA system monitor, called XADC in 7Series and SYSMON otherwise, available
5
on the rbus and therefore from ti_rri.
6
 
7
To set this up in ti_rri or ti_w11 use
8
 
9
    package require rbsysmon
10
    rbsysmon::setup_xadc_arty;      # for arty
11
    rbsysmon::setup_xadc_base;      # for b3,n4
12
 
13
Two procedures allow to read and nicely print the XADC data
14
 
15
    rbsysmon::print
16
      --> gives on an Arty for example
17
      Value     cur val     min val   max val   low lim  high lim  alarm
18
      temp       34.3   d    30.8      36.0      60.0      85.0
19
      Vccint      0.948 V     0.944     0.953     0.920     0.980
20
      Vccaux      1.799 V     1.787     1.802     1.710     1.890
21
      Vccbram     0.948 V     0.944     0.954     0.920     0.980
22
      V 5V0       4.978 V
23
      V VU        0.088 V
24
      A 5V0       0.173 A
25
      A 0V95      0.087 A
26
 
27
    rbsysmon::print_raw
28
      --> produces a full list of all defined registers, like
29
      name        description         :  hex  other
30
      sm.temp     cur temp            : 9a50    30.6   deg
31
      sm.vint     cur Vccint          : 50ce     0.947 V
32
      sm.vaux     cur Vccaux          : 9962     1.797 V
33
      sm.vrefp    cur Vrefp           : 0000     0.000 V
34
      ....
35
      sm.flag     flag reg            : 0000  0000000000000000
36
      sm.conf0    conf 0              : 9000  1001000000000000
37
      sm.conf1    conf 1              : 2ef0  0010111011110000
38
      sm.conf2    conf 2              : 0400  0000010000000000
39
      ....
40
 
41
For simulation proper setup files are included and activated by tbw to that
42
one sees in simulation nominal readings for the power monitor values. To
43
test this do for example
44
 
45
    cd $RETROBASE/rtl/sys_gen/tst_rlink/arty/tb
46
    make
47
    ti_rri --fifo=,xon --run='tbw tb_tst_rlink_arty'
48
 
49
    .. commands above ...

powered by: WebSVN 2.1.0

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