-
Notifications
You must be signed in to change notification settings - Fork 0
/
stat-db.fr.sv00
80 lines (60 loc) · 2.26 KB
/
stat-db.fr.sv00
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
\ (c) 2014 Johns Hopkins University / Applied Physics Laboratory
\ Status and configuration data
decimal
module> status
: set-io
@ io!
;
\ -------------------------------------------------------------------------
\ Configuration and status databases
\ Sizes
d# 20 constant #config/status \ total size of status
d# 2 constant #more-config/status \ extra status
\ Combined database
create config/status
#config/status allot
\ Other configuration/status data. These are not downlinked as part of
\ status data
create more-config/status
#more-config/status allot
\ ------------------------------------------------------------------------
\ * Configuration and status objects. Each of these objects can be
\ * modified via set; the current value is returned with get.
public:
\ * Software status
config/status 0 + mem-word: status-int \ *
config/status 2 + mem-word: tlm-volume \ *
config/status 4 + mem-word: watch-addr \ *
config/status 6 + mem-byte: watch-mem \ *
config/status 7 + mem-byte: watch-byte1 \ *
config/status 8 + mem-byte: watch-byte2 \ *
config/status 9 + mem-byte: sw-version \ *
config/status 10 + mem-byte: alarm-id \ *
config/status 11 + 7 mem-bit: alarm-type \ *
config/status 11 + 0 7 mem-field: alarm-count \ *
config/status 12 + mem-byte: cmds-executed \ *
config/status 13 + mem-byte: cmds-rejected \ *
config/status 14 + 7 mem-bit: cause \ *
config/status 14 + 6 mem-bit: mem-write-enb \ *
config/status 14 + 0 3 mem-field: code-ram \ *
\ 15 unused to keep the following short word aligned.
config/status 16 + port-word: instr-control ' set-io , control-a# ,
instr-control 7 port-bit: nv-enb
config/status 18 + mem-word: instr-status \ This has to be regularly read.
instr-status 0 mem-bit: dpu-id
\ More; not downlinked
more-config/status 0 + mem-byte: macro-cmds-exec \ *
more-config/status 1 + mem-byte: macro-cmds-rej \ *
private:
\ ------------------------------------------------------------------------
\ Default values
\ Most are zero; others can be set below
config/status #config/status 0 fill
\ Set individual values for non-zero defaults
1 status-int set
1 sw-version set
: update-digital-status
control-a# io@
instr-status set
;
endmodule>