CAEN
Electronic Instrumentation
UM5175
–
V2495/VX2495 User Manual rev. 1
53
11.5
Pattern Recorder Demo Description
Introduction
In this demo, a digital pattern recorder is implemented. When a start signal is received, the digital input specified
through the control register is sampled at a user-configurable sampling rate, and a user-configurable number of
samples are collected in a FIFO. Once all samples have been stored, they can be readout through VME read accesses.
Register Map
In this example, 9 registers are used, 5 of which (MONITOR registers) can be only read and 4 (CONTROL registers) can
be both read and written.
The sampling clock can be either internal (100 MHz, generated from the 50 MHz input clock through a PLL) or external,
through the G0 connector: in this case a signal compatible with one of the supported levels (NIM or TTL) should be
provided.
All registers are 32 bit wide and can be accessed in single access mode.
ADDRESS
REGISTER/CONTENT
ACCESS MODE
Read/Write
Base + 0x0000
Base + 0x1000
Base + 0x1004
Base + 0x1008
Base + 0x100C
Base + 0x1800
Base + 0x1804
Base + 0x1808
Base + 0x180C
FIFO content readout
Firmware version
Value of port A (input)
Value of port B (input)
Value of port C (output)
Mask of input port A
Mask of input port B
Control register
User Value of port C
A24/A32
A24/A32
A24/A32
A24/A32
A24/A32
A24/A32
A24/A32
A24/A32
A24/A32
D16/D32
D16/D32
D16/D32
D16/D32
D16/D32
D16/D32
D16/D32
D16/D32
D16/D32
R
R
R
R
R
R/W
R/W
R/W
R/W
Register Description
➢
FIRMWARE REVISION register:
Contains the firmware revision number
Address:
0x1000.
Mode:
Read only.
Bit
Description
[31:0]
Firmware revision progressive number
➢
A PORT VALUE:
the 32 input bits of port A
Address:
0x1004.
Mode:
Read only.
Bit
Description
[31:0]
Input on port A
➢
B PORT VALUE:
the 32 input bits of port B
Address:
0x1008.
Mode:
Read only.
Bit
Description
[31:0]
Input on port B