Commit graph

1,886 commits

Author SHA1 Message Date
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
Lauri Panitzsch
dd358aa552 plot_STEP_sci.py: removed git dependencies;\nadapted to new svn structure;\nuse solo_data output;\nstill work in progress
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6528 bc5caf13-1734-44f8-af43-603852e9ee25
2018-01-23 13:42:45 +00:00
Jan Christoph Terasa
d8f3e20d41 step_config_fs.py: Move enc_base back to 0x0.
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6527 bc5caf13-1734-44f8-af43-603852e9ee25
2018-01-23 11:41:45 +00:00
Jan Christoph Terasa
b9139e99cd l3.py: Fixed error message in loop and for.
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6526 bc5caf13-1734-44f8-af43-603852e9ee25
2018-01-23 11:41:05 +00:00
Jan Christoph Terasa
817d4c4b3b step_ppss.py: Read STEP L1 counter SEU counters.
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6525 bc5caf13-1734-44f8-af43-603852e9ee25
2018-01-23 11:39:24 +00:00
Stephan I. Böttcher
0764391e60 C'E4 LND FM config EEPROM burn version 3
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6517 bc5caf13-1734-44f8-af43-603852e9ee25
2018-01-22 15:21:42 +00:00
Stephan I. Böttcher
727104f7f3 ce4_config.defsfile()
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6516 bc5caf13-1734-44f8-af43-603852e9ee25
2018-01-22 15:09:51 +00:00
Stephan I. Böttcher
f22b6009de ce4_config: include solo_msg.revision
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6515 bc5caf13-1734-44f8-af43-603852e9ee25
2018-01-22 15:04:05 +00:00
Stephan I. Böttcher
1f97654cb2 ce4_exec(): new arg partition=0
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6514 bc5caf13-1734-44f8-af43-603852e9ee25
2018-01-22 13:28:31 +00:00
Stephan I. Böttcher
cbfab7bdfa C'E4 config: dumpfile(), text=False
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6513 bc5caf13-1734-44f8-af43-603852e9ee25
2018-01-22 13:24:47 +00:00
Stephan I. Böttcher
a72f1e27ae C'E4 config: allow selectin index addr, messages addr, version 3
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6512 bc5caf13-1734-44f8-af43-603852e9ee25
2018-01-22 12:46:49 +00:00
Stephan I. Böttcher
8d88ac4ff4 C'E4 write_eeprom(): allow index only/messages only writes
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6511 bc5caf13-1734-44f8-af43-603852e9ee25
2018-01-22 12:45:47 +00:00
Sebastian Boden
56711de19b step_data, solo_data: added support for returning the pixels of all sections
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6508 bc5caf13-1734-44f8-af43-603852e9ee25
2018-01-19 17:25:33 +00:00
Stephan I. Böttcher
051a2359d6 C'E4 config: allow to pass an [m]addr top ce4_table, for EEPROM partitions
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6507 bc5caf13-1734-44f8-af43-603852e9ee25
2018-01-19 16:15:53 +00:00