Stephan I. Böttcher
f9ab050fe4
C'E4 LND v0004a config dump
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6712 bc5caf13-1734-44f8-af43-603852e9ee25
2018-03-26 15:10:11 +00:00
Sebastian Boden
008687794a
solo_data: added bounds checks for all dps products
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6704 bc5caf13-1734-44f8-af43-603852e9ee25
2018-03-22 13:04:45 +00:00
Jan Christoph Terasa
a01ed6a6b7
ixmsg.py/itf_parser.c: Simplify temperature calculation and fix error in ixmsg indexing.
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6702 bc5caf13-1734-44f8-af43-603852e9ee25
2018-03-20 13:39:36 +00:00
Sebastian Boden
53823233a9
solo_data.py: added tex and pdf methods to science_data; removed solo_printer.py
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6701 bc5caf13-1734-44f8-af43-603852e9ee25
2018-03-19 15:17:26 +00:00
Sebastian Boden
0bf848fb18
solo_data.py: solo_data objects now have a plot() and tex() function
...
solo_printer.py: reorganised and simplified
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6697 bc5caf13-1734-44f8-af43-603852e9ee25
2018-03-15 17:13:50 +00:00
Jan Christoph Terasa
56ac6c349d
python/solo/step: Fix indentation on remanining files.
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6689 bc5caf13-1734-44f8-af43-603852e9ee25
2018-03-13 08:49:34 +00:00
Jan Christoph Terasa
ed14a97df4
python/solo/l3.py: Define __next__ as well as next for all iterators.
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6687 bc5caf13-1734-44f8-af43-603852e9ee25
2018-03-12 17:29:29 +00:00
Jan Christoph Terasa
6a3c7535ad
python/solo: Move Python2-bytes-check from configtable.py to crc1021.py
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6686 bc5caf13-1734-44f8-af43-603852e9ee25
2018-03-12 17:26:30 +00:00
Jan Christoph Terasa
9ef4d37326
python/solo: Python3 compat:
...
configtable.py:
- Iterating over `bytes` instances directly yields integers, no need to
call map(ord, ...)
- Use explicit flooring integer division
l3.py:
- Use numbers.Integral instead of (int, long) to check if an input is
an integral number
- `file` objects in Python3 do not have next methods, but still
implement an iterator which can be advanced by next() function
- Use explicit flooring integer division
- __nonzero__ class attribute is called __bool__ in Python3
solomsgclass.py:
- Use numbers.Integral instead of (int, long) to check if an input is
an integral number
- Explicitely define relational operators for ModulusValue objects,
i.e. implement __lt__ and __eq__. __cmp__ is deprecated
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6685 bc5caf13-1734-44f8-af43-603852e9ee25
2018-03-12 15:56:02 +00:00
Jan Christoph Terasa
345c69d9a5
python/solo/step: Fix indentation for several files.
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6684 bc5caf13-1734-44f8-af43-603852e9ee25
2018-03-12 15:00:45 +00:00
Jan Christoph Terasa
f0ab0b8149
solomsgclass.py: Fix instantiation of L3 incrementer.
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6682 bc5caf13-1734-44f8-af43-603852e9ee25
2018-03-11 17:07:40 +00:00
Jan Christoph Terasa
409fb93009
solomsgclass.py: Write SRAM can take a iterator and creates an unlimited sequence from it.
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6681 bc5caf13-1734-44f8-af43-603852e9ee25
2018-03-11 16:55:28 +00:00
Robert Elftmann
5361c78adb
hetept/data.py: Added DPs for CNO
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6679 bc5caf13-1734-44f8-af43-603852e9ee25
2018-03-09 12:38:44 +00:00
Sebastian Boden
bfd3d0a206
moving solopath back into the python folder
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6676 bc5caf13-1734-44f8-af43-603852e9ee25
2018-03-08 10:06:36 +00:00
Sebastian Boden
8e81b26395
... done
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6675 bc5caf13-1734-44f8-af43-603852e9ee25
2018-03-08 10:05:06 +00:00
Sebastian Boden
1a011d5747
still moving
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6674 bc5caf13-1734-44f8-af43-603852e9ee25
2018-03-08 10:04:20 +00:00
Stephan I. Böttcher
d468cb92a2
C'E4 dps: fix x-mas telemetry
...
X-mas card readout was reading from the active page
instead of the inactive page. Only the first few minutes
of the current hour were transmitted. Flipping the most significant
bit of the hist memory dump command fixes the problem.
This was verified in the Verilog backend.v:
The hist_page is part of the master control registers,
it is the MSbit of the active page address.
wire hist_page = enables[3];
The L3 increments the active page
.addr({hist_page, hist_addr}),
The DPS reads the inactive page
.addr({~hist_page,a_win})
The x-mas readout uses the inactive page by default
l3d_aa <= {~l3d_a[18]^hist_page, l3d_a[17:0]};
Conclusion: the MSbit must not be set in the readout command.
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6596 bc5caf13-1734-44f8-af43-603852e9ee25
2018-02-18 14:49:57 +00:00
Sebastian Boden
5b0eea2ded
solomsg: added method _export_with_msg which wraps the exported
...
functions with a given message class.
configtable, ppss_table: use this method and move the ixmsg and stepmsg
imports into the relevant step modules
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6587 bc5caf13-1734-44f8-af43-603852e9ee25
2018-02-16 15:11:16 +00:00
Jia Yu
ab5341198d
ce4_dps: delete 10min neutrals
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6586 bc5caf13-1734-44f8-af43-603852e9ee25
2018-02-16 13:16:12 +00:00
Stephan I. Böttcher
1c9ac9acb1
C'E4 LND DPS: 8 bins for TID and LET @ 1min
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6578 bc5caf13-1734-44f8-af43-603852e9ee25
2018-02-15 13:42:49 +00:00
Stephan I. Böttcher
a223af761d
C'E4 LND DPS: add TID and LET @ 1min cadence
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6577 bc5caf13-1734-44f8-af43-603852e9ee25
2018-02-14 15:42:25 +00:00
Jan Christoph Terasa
0c6e4d61db
step_base_config.py: Move enc_base for all models to 0x20000.
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6566 bc5caf13-1734-44f8-af43-603852e9ee25
2018-02-08 08:39:24 +00:00
Jan Christoph Terasa
be72b5ee80
dpsbug_ppss.py: Set OH dutycycle to 0. Read STEP HK.
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6565 bc5caf13-1734-44f8-af43-603852e9ee25
2018-02-07 13:43:33 +00:00
Jan Christoph Terasa
d17573492e
dpsbug_ppss.py: Clear SEU counters every minute, do not send them during dribble.
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6563 bc5caf13-1734-44f8-af43-603852e9ee25
2018-02-07 11:05:21 +00:00
Jan Christoph Terasa
96c270cfe1
dpsbug_base_config.py: Remove import of non-existant module.
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6560 bc5caf13-1734-44f8-af43-603852e9ee25
2018-02-05 14:26:23 +00:00
Jan Christoph Terasa
8affbbe8c3
solomsgclass.py: Fixed indentation.
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6559 bc5caf13-1734-44f8-af43-603852e9ee25
2018-02-05 14:22:48 +00:00
Jan Christoph Terasa
b334261d34
dpsbug: 'Minimal' config which shows bug in histmem/SRAM read.
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6558 bc5caf13-1734-44f8-af43-603852e9ee25
2018-02-05 13:55:56 +00:00
Jan Christoph Terasa
dd11ce9c11
solomsgclass.py: Add clear_first option to write_sram to improve speed.
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6557 bc5caf13-1734-44f8-af43-603852e9ee25
2018-02-05 12:57:53 +00:00
Jan Christoph Terasa
457c26a953
dpsbug: use STEP v01 data products.
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6556 bc5caf13-1734-44f8-af43-603852e9ee25
2018-02-05 12:40:33 +00:00
Sebastian Boden
515aba3e30
dpsbug: added a simplified dpsbug_data class to probe the behaviour more easily
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6555 bc5caf13-1734-44f8-af43-603852e9ee25
2018-02-05 11:24:21 +00:00
Jan Christoph Terasa
8498fa60f5
dpsbug: Remove clear from dps.
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6554 bc5caf13-1734-44f8-af43-603852e9ee25
2018-02-03 09:21:49 +00:00
Jan Christoph Terasa
32ab6f886c
dpsbug: Fixed base config. Added to solopath.py.
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6553 bc5caf13-1734-44f8-af43-603852e9ee25
2018-02-03 09:21:10 +00:00
Jan Christoph Terasa
6db1b33cf1
python/dpsbug: Added config.
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6552 bc5caf13-1734-44f8-af43-603852e9ee25
2018-02-03 09:10:28 +00:00
Jan Christoph Terasa
a9c21f4dac
python/dpsbug: Config to diagnose DPS bug in STEP units.
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6551 bc5caf13-1734-44f8-af43-603852e9ee25
2018-02-02 12:30:37 +00:00
Sebastian Boden
25e2f68eb3
l3.py: added new macro type which can replace a variable with an
...
evaluated expression; useful for setting options from defines, e.g.
.var x = EXPR
.for i 0 $x
NOP
.endfor
.endvar
increment_sram.l3: use this to set loop length from defines
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6550 bc5caf13-1734-44f8-af43-603852e9ee25
2018-02-01 13:44:19 +00:00
Sebastian Boden
67d5ceed7a
increment_sram.l3: disabled choosing length of loop at compile time; not (yet) supported by l3.py
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6549 bc5caf13-1734-44f8-af43-603852e9ee25
2018-02-01 10:47:24 +00:00
Sebastian Boden
cb5ec057cd
solomsgclass.py: fixed bug introduced in last commit
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6548 bc5caf13-1734-44f8-af43-603852e9ee25
2018-02-01 09:59:08 +00:00
Sebastian Boden
27ce74bd8b
solomsgclass: added some checks
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6546 bc5caf13-1734-44f8-af43-603852e9ee25
2018-01-31 15:19:22 +00:00
Sebastian Boden
a9236a8b3a
increment_sram.l3: made number of NOPs between HISTs definable,
...
default is 10 (plus GOTO, etc.)
solomsgclass.py: clear_sram and write_sram now use the correct hist_base
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6545 bc5caf13-1734-44f8-af43-603852e9ee25
2018-01-31 14:08:06 +00:00
Sebastian Boden
a72dbcf48a
increment_sram.l3: increments the SRAM address given by the first pha record
...
with the value given in the second pha record
uses a loop, so will be quite slow for large values
solomsgclass.py: added functions clear_sram and write_sram; be very careful
when using them since they will overwrite l3code and dps entries
in the FPGA and could interfere with the ppss
TODO: take care of sram page toggling
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6544 bc5caf13-1734-44f8-af43-603852e9ee25
2018-01-31 11:40:49 +00:00
Sebastian Boden
3480cc24c9
cleaned up some obsolete and unused files in python/l3/
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6542 bc5caf13-1734-44f8-af43-603852e9ee25
2018-01-29 17:00:30 +00:00
Sebastian Boden
635f94e203
python/step/*: minor changes to syntax, no effect on config
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6541 bc5caf13-1734-44f8-af43-603852e9ee25
2018-01-29 14:07:14 +00:00
Sebastian Boden
17001db89d
solo_printer: fixed a bug introduced by changes in solo_data
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6538 bc5caf13-1734-44f8-af43-603852e9ee25
2018-01-26 11:58:34 +00:00
Lauri Panitzsch
b716d3d521
plot_STEP_sci.py: added plot and data return functionality
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6537 bc5caf13-1734-44f8-af43-603852e9ee25
2018-01-25 15:55:56 +00:00
Sebastian Boden
5a48bbcb7f
minor changes to multiple files to make them more python3 friendly
...
(no changes to functionality under python2)
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6536 bc5caf13-1734-44f8-af43-603852e9ee25
2018-01-25 14:15:49 +00:00
Jan Christoph Terasa
c11136d01a
step_calib.l3: Multiply ped by cal for dummy calibration.
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6533 bc5caf13-1734-44f8-af43-603852e9ee25
2018-01-23 15:40:02 +00:00
Jan Christoph Terasa
2b1ae09d2e
Makefile: Remove references to STEP_*correlated*.
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6532 bc5caf13-1734-44f8-af43-603852e9ee25
2018-01-23 15:39:33 +00:00
Jan Christoph Terasa
27c2d7ea49
l3/step: Fixed ADC_OFFSET option.
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6531 bc5caf13-1734-44f8-af43-603852e9ee25
2018-01-23 15:39:05 +00:00
Jan Christoph Terasa
d58f91719a
l3/step: Allow ADC_OFFSET option when temp calib is not used.
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6530 bc5caf13-1734-44f8-af43-603852e9ee25
2018-01-23 14:46:33 +00:00
Lauri Panitzsch
55b6410ac3
plot_STEP_sci.py: minor but basic adaptions
...
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6529 bc5caf13-1734-44f8-af43-603852e9ee25
2018-01-23 14:38:00 +00:00