Commit graph

181 commits

Author SHA1 Message Date
Stephan I. Böttcher
60aae89495 move net decls before use
iverilog v13 is becoming picky about that.
parameter use before decl requires a patch.
2026-03-16 22:23:47 +01:00
stephan
16e661b92b irena: 9ch/2thr bitfile
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9396 bc5caf13-1734-44f8-af43-603852e9ee25
2025-11-08 12:44:47 +00:00
stephan
c94a262239 irena_core: TWOTHR: L1 trigger counters for the second set of thr
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9248 bc5caf13-1734-44f8-af43-603852e9ee25
2025-02-07 09:17:17 +00:00
stephan
018a868aed packetfifo warnings update
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9074 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-20 20:21:31 +00:00
stephan
6954c82e34 ms5540: extend and harden timeout
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9030 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-07 20:42:04 +00:00
stephan
4ea54b7cce ms5540: disable MCLK when idle
- `mclk_enable`  
- `timeout` in case no sensor is present, to complete the packet
- lxt2 → fst
- fix ms5540 testjig



git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9022 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-07 16:27:11 +00:00
stephan
0aa25ab367 irena/ms5540c: fix bug of 2nd sensor packet size
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@9021 bc5caf13-1734-44f8-af43-603852e9ee25
2024-07-06 19:10:59 +00:00
stephan
1347be0a97 IRENA: bitfile w/ 2 pressure sensors
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@8943 bc5caf13-1734-44f8-af43-603852e9ee25
2024-05-23 13:58:30 +00:00
stephan
8ab1023968 ms5540c: wire up wa[7] to tell sensor number in packet header
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@8942 bc5caf13-1734-44f8-af43-603852e9ee25
2024-05-23 13:51:23 +00:00
stephan
3bd3828dbf ms5540c: drop unneccessay condition on fifo
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@8935 bc5caf13-1734-44f8-af43-603852e9ee25
2024-05-22 13:06:20 +00:00
stephan
06e45549e2 irena: connect a second MS5534C pressure sensor to the FPGA
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@8810 bc5caf13-1734-44f8-af43-603852e9ee25
2024-01-11 18:42:38 +00:00
stephan
4239d2288a irena: add NTC bias to 2nd free HK channel
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@8697 bc5caf13-1734-44f8-af43-603852e9ee25
2023-11-01 14:09:34 +00:00
stephan
470898d66d rpirena_t8 bitfile with two L1 thresholds per channel
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@8659 bc5caf13-1734-44f8-af43-603852e9ee25
2023-07-03 05:39:04 +00:00
stephan
2b9cd33984 irena: implement second set of L1 thresholds, for rpirena
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@8656 bc5caf13-1734-44f8-af43-603852e9ee25
2023-07-02 15:35:58 +00:00
stephan
407a7f5300 irena/altera target irena48
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@8593 bc5caf13-1734-44f8-af43-603852e9ee25
2023-02-23 08:29:39 +00:00
stephan
3bc20a90a9 irene48: fix random trigger bit
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@8358 bc5caf13-1734-44f8-af43-603852e9ee25
2021-11-30 10:52:29 +00:00
stephan
6a498ee375 irena_core gold
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@8357 bc5caf13-1734-44f8-af43-603852e9ee25
2021-11-30 10:44:53 +00:00
stephan
e2b04c7e08 irena: fix timing of DD48 buffer writes
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@8345 bc5caf13-1734-44f8-af43-603852e9ee25
2021-11-29 21:07:51 +00:00
stephan
f12a94796c irena_core: gold
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@8344 bc5caf13-1734-44f8-af43-603852e9ee25
2021-11-29 20:56:27 +00:00
stephan
11a338865d irenacore with DD48 wide oputput
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@8341 bc5caf13-1734-44f8-af43-603852e9ee25
2021-11-28 23:04:53 +00:00
stephan
07fe86f364 sfilter 48 bit output: wire up the packet fifo infra
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@8340 bc5caf13-1734-44f8-af43-603852e9ee25
2021-11-28 20:27:27 +00:00
stephan
c867d9a8d2 sfilter 48 bit output: wire up the packet fifo infra
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@8339 bc5caf13-1734-44f8-af43-603852e9ee25
2021-11-28 20:20:07 +00:00
stephan
968011a065 sfilter dranbuf: module parameter DD for 48 bit output
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@8338 bc5caf13-1734-44f8-af43-603852e9ee25
2021-11-28 18:11:57 +00:00
stephan
939bde8709 irena_core sim: fix event parser for timestamp
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@8337 bc5caf13-1734-44f8-af43-603852e9ee25
2021-11-28 12:12:44 +00:00
stephan
4377759d7b pulser: fix sample_offset
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@8049 bc5caf13-1734-44f8-af43-603852e9ee25
2020-04-16 13:35:51 +00:00
stephan
6b24f61781 darena: task sim_samples
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@8047 bc5caf13-1734-44f8-af43-603852e9ee25
2020-04-15 19:56:13 +00:00
stephan
4344a3458d pulser: avoid $readmemh warning
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@7985 bc5caf13-1734-44f8-af43-603852e9ee25
2020-03-13 11:33:32 +00:00
stephan
378dd03885 dorn L3
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@7974 bc5caf13-1734-44f8-af43-603852e9ee25
2020-03-11 04:29:32 +00:00
stephan
8bbdfdb0f6 irenacore: new bitfile
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@7827 bc5caf13-1734-44f8-af43-603852e9ee25
2019-11-13 13:41:41 +00:00
stephan
9f367354c5 meps_ana: test various descoping options
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@7799 bc5caf13-1734-44f8-af43-603852e9ee25
2019-10-26 22:47:31 +00:00
stephan
0c4e15c7d2 sfilter: yet another change to the L2 trigger.
Lately we got a 4th window parameter.  The logic was that only one channel
	contributing to a coincidence trigger on either level must be in a narrow 
	age window.  There were still races of all kinds.  This change is 
	conceptually simple and should eliminate all races.

	The four window parameters (a₁ a₂ a₃ a₄) define a wide and a narrow age 
	window, wide: a₁ ≤ T ≤ a₄, narrow: a₂ ≤ T ≤ a₃.
	All channels required to be hit by an L₂ trigger must have a pulse age T in
	the narrow window.  A hit on an anticoincidence channel within the wide 
	age window will inhibit the trigger.

	a₄ is the L₁ trigger parameter that defines when the peak detector will 
	be reset.  Hits with longer age will not show up in the data and not be 
	seen by the L₂ trigger.  The parameters should be monotonic, but need 
	not be distinct.  


git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@7795 bc5caf13-1734-44f8-af43-603852e9ee25
2019-10-26 16:17:20 +00:00
stephan
0b049a4d63 sfilter dranbufmux: simplify formula for next
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@7784 bc5caf13-1734-44f8-af43-603852e9ee25
2019-10-22 19:27:08 +00:00
stephan
84d75c8809 meps_ana: successfull simulation
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@7762 bc5caf13-1734-44f8-af43-603852e9ee25
2019-10-16 22:30:40 +00:00
stephan
1250289f23 meps_ana_test: syntax error free
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@7760 bc5caf13-1734-44f8-af43-603852e9ee25
2019-10-16 17:36:02 +00:00
stephan
f2133a45c3 flyrena: enhancements for meps_ana
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@7753 bc5caf13-1734-44f8-af43-603852e9ee25
2019-10-15 23:44:56 +00:00
stephan
acb3d04734 irena_core: add peek test
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@7750 bc5caf13-1734-44f8-af43-603852e9ee25
2019-10-15 21:27:23 +00:00
stephan
7956890526 flyrena sfilter: sampleram with EDAC
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@7743 bc5caf13-1734-44f8-af43-603852e9ee25
2019-10-15 18:24:34 +00:00
stephan
8a2d525c24 erena: add pressure sensor
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@7734 bc5caf13-1734-44f8-af43-603852e9ee25
2019-10-10 14:50:54 +00:00
stephan
98eafe3c29 direna: minor formal fix
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@7578 bc5caf13-1734-44f8-af43-603852e9ee25
2019-07-01 19:14:17 +00:00
stephan
9fd548af9a direna/adccntl: minor formal fix
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@7577 bc5caf13-1734-44f8-af43-603852e9ee25
2019-07-01 19:13:47 +00:00
stephan
c9090b4aab irena_core: finish integration of nm_counter via fifo_mux
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@7420 bc5caf13-1734-44f8-af43-603852e9ee25
2019-04-15 21:12:10 +00:00
stephan
2886f99aa4 nm_counter: add uf16 output format. Improve bate fifo interface
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@7419 bc5caf13-1734-44f8-af43-603852e9ee25
2019-04-15 19:23:31 +00:00
stephan
a0c9864c1f sfilter:
There were three window parameters: minT, maxT, TmaxT.
	Any pulse required for a trigger must be aged at least minT.
	At least one pulse of any trigger must be at least maxT of age.
	A pulse aged TmaxT will be reset to 0.
	TmaxT is an L1 parameter.
	minT and maxT are L2 parameters.

	The problem:  An anticoincidence pusle may age out beyond TmaxT
	while the hit channel stays below TmaxT.  There will be a false 
	positive trigger.

	Now there are four trigger parameters: minT, nomT, maxT, TmaxT.
	maxT was renamed to nomT.  A required pulse must not be older 
	than the new maxT parameter.

	minT ≤ nomT ≤ maxT ≤ TmaxT.
	minT ≥ 2

	Users need to be updated.



git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@7417 bc5caf13-1734-44f8-af43-603852e9ee25
2019-04-15 15:37:27 +00:00
stephan
37006b40ab irena.qsf: remove bogus MISC_FILE
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@6591 bc5caf13-1734-44f8-af43-603852e9ee25
2018-02-16 20:32:53 +00:00
stephan
445759cfa7 irena warnings -c 6065
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@6154 bc5caf13-1734-44f8-af43-603852e9ee25
2017-07-20 19:43:04 +00:00
stephan
bc82102999 flyrena/sfilter: fix L2 trigger
From: boettcher@physik.uni-kiel.de (Stephan Böttcher)
To: solo_kiel@physik.uni-kiel.de,  change4@physik.uni-kiel.de
Subject: flyrena L2 trigger
Date: Sat, 27 May 2017 20:43:24 +0200
Message-ID: <s6ninkmp2cz.fsf@blaulicht.brux>

Moin,

I found a deficiency in the flyrena L2 trigger, that may affect HET/EPT
and/or LND.

If multiple L2 trigger are satisfied by a particle hit, the L2 trigger
bits are set as soon as one of those L2 trigger conditions is satisfied
and the event record is generated according to that triggers readout
mask.  A more elaborate trigger may come active one or more ADC clocks
later, but that will not be reflected in the L2 trigger bits, nor the
selected readout mask, nor the L3 trigger being activated.

HET/EPT is probably not affected.  But that needs to be verified.

The current LND configuration is affected.

Assume a charged particle hit. Detector B triggers an ADC clock earlier
than A and/or I, so that the total-dose-in-B trigger fires with a narrow
readout mask, calling for dosimetry L3.  One ADC clock later, the
condition for the charged particle trigger is fullfilled, but the event
readout is too narrow, and the wrong L3 trigger is called.

A workaround is to never do sparse readout, i.e., always read all
channels, and add code to L3 to refine the triggers.

Gruß,
Stephan

PS: I found this problem in the data of the RpiRENA mADAM detector for
the weather ballon flight this summer.  That is a direna filter
with 3MSPS and 12-bit coefficients, so the probablility for triggers to
come out of time is higher.



git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@6069 bc5caf13-1734-44f8-af43-603852e9ee25
2017-05-27 22:03:28 +00:00
stephan
ca4f711b0d irena sfilter: trigger samples only once per event
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@6065 bc5caf13-1734-44f8-af43-603852e9ee25
2017-05-26 08:45:34 +00:00
stephan
4f6f24826e sirena_ana: fix SCK polarity, harness test successful
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@5877 bc5caf13-1734-44f8-af43-603852e9ee25
2017-02-24 16:44:25 +00:00
stephan
0d5f76d554 C'E4 flyrena: fix mtick phase
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@5736 bc5caf13-1734-44f8-af43-603852e9ee25
2016-12-22 10:24:31 +00:00
stephan
6209a6fb17 irenacore: shift samples mantissa one more bit left
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda@5608 bc5caf13-1734-44f8-af43-603852e9ee25
2016-11-11 14:41:16 +00:00