March 2003 Y.Yasu
Development of a Pipeline Development of a Pipeline CAMAC cont - - PowerPoint PPT Presentation
Development of a Pipeline Development of a Pipeline CAMAC cont - - PowerPoint PPT Presentation
Development of a Pipeline Development of a Pipeline CAMAC cont roller CAMAC cont roller wit h PC104plus single wit h PC104plus single board comput er board comput er March 2003 Y.Yasu Proj ect t eam Yoshij i Yasu(1), Eij i I noue(1),
March 2003 Y.Yasu
Proj ect t eam
Yoshij i Yasu(1), Eij i I noue(1), Hirof umi Fuj ii(1), Youichi I garashi(1), Masahiro I keno(1), Manobu Tanaka(1), Kazuo Nakayoshi(1), Hideyo Kodama(1), Shuichi Harada(2) and Haruyuki Kyoo(3) (1) High Energy Accelerat or Research Organizat ion ( KEK ) (2) TOYO Corporat ion (3) Fird, Co.
March 2003 Y.Yasu
Cont ent s
- Archit ect ure of Pipeline CAMAC Cont roller
- Overview of t he CAMAC cont roller
- CAMAC/ DAQ Frame f ormat
- PCI operat ion
- Perf ormance measurement
- Current st at us and plan
March 2003 Y.Yasu
Archit ect ure of Pipeline CAMAC Cont roller Archit ect ure of Pipeline CAMAC Cont roller
March 2003 Y.Yasu
Pipeline CAMAC Cont roller
Pipeline CAMAC Controller CAMAC command frames CAMAC reply frames The controller gets a command frame from RX via CAMAC command FIFO, executes the frame in a 1 usec. and puts a reply frame to TX via CAMAC reply FIFO. The command frame and the reply frame contain CAMAC N, A, F, Status (Q,X) and 24-bit data. RX TX
March 2003 Y.Yasu
Pipeline Obj ect Cont roller
Pipeline Object Controller RX TX Object command Object command SRC DST Point to Point link N x M network
N E T W O R K
FADC FADC FADC PC PC FPGA CAMAC
Examples of configuration
CAMAC PC Object reply SRC DST Object reply
March 2003 Y.Yasu
Overview of t he CAMAC cont roller Overview of t he CAMAC cont roller
March 2003 Y.Yasu
Pipeline CAMAC Cont roller
Fast Ethernet
PC104plus PC board computer PCM-9370's Crusoe TM5400, Memory, Flash Disk, Ethernet, USB, … ALTERA FPGA for PCI ALTERA FPGA for CAMAC
March 2003 Y.Yasu
CAMAC/ DAQ f unct ions
- Basic CAMAC operat ion
- LAM int errupt f unct ion
- Trigger I nput and Busy Out wit h
Event count er
- Trigger I nt errupt f unct ion
March 2003 Y.Yasu
Registers 2 32-bit TX/RX data registers TX/RX Control and Status registers TX/RX Memory Address registers TX/RX Preset Transfer counters TX/RX Actual Transfer counters TX/RX FIFO count registers Operation modes Programmed I/O Block transfer
PCI regist ers f or CAMAC
March 2003 Y.Yasu
PCI logic
CAMAC/ DAQ logic TX FIFO
PCI
TX PCI Engine RX FIFO RX PCI Engine PCI MUX Alt era FPGA PCI logic
March 2003 Y.Yasu
Alt era FPGA
CAMAC/ DAQ logic
C A M A C D A Q
CAMAC executor CAMAC Interrupt CMD FIFO REPLY FIFO Packet control
PCI logic
DAQ executor DAQ Interrupt
March 2003 Y.Yasu
CAMAC/ DAQ Frame f ormat CAMAC/ DAQ Frame f ormat
March 2003 Y.Yasu
TX cmd N A F 24-bit DATA RX N A F 24-bit DATA ST Basic CAMAC operation rply
N:station, A:sub-address, F:function, ST:status(Q,X,...) Read : data(tx) has no meaning. Write : data(rx) has no meaning. NDT : data(tx) and data(rx) have no meaning.
Frame f ormat
RX LAM(interrupt) CAMAC operation rply
24-bit LAM information 64-bit fixed-length
March 2003 Y.Yasu
RX DAQ function( Trigger Interrupt) rply TX cmd RX 32-bit Event Counter DAQ function( read event counter) rply
Frame f ormat (cont .)
64-bit fixed-length
32-bit Event Counter
March 2003 Y.Yasu
PCI operat ion PCI operat ion
March 2003 Y.Yasu
Programmed I/O : Generate CAMAC codes for CAMAC write/read/NDT; check whether TX FIFO is available; for(i=0;i<N;i++) { write data to TX data1/2 registers; } check whether RX FIFO is available; for(i=0;i<N;i++) { read data from RX data1/2 registers; } Extract CAMAC data and the status;
PCI operat ion
March 2003 Y.Yasu
Block transfer : Generate CAMAC code for CAMAC write/read/NDT; check whether TX FIFO is available; start reading data with non-blocking; write data with blocking. wait for the completion interrupt of the read operation; Extract CAMAC data and the status; This algorithm makes CAMAC write and the read operate concurrently.
PCI operat ion (cont .)
March 2003 Y.Yasu
Perf ormance Measurement Perf ormance Measurement
March 2003 Y.Yasu
CAMAC t iming
Busy S1
March 2003 Y.Yasu
CAMAC t iming (cont .)
Busy S1
March 2003 Y.Yasu
Current st at us and Plan Current st at us and Plan
March 2003 Y.Yasu
- CAMAC/ DAQ f unct ions basically
worked on t he prot ot ype of Pipeline CAMAC cont roller
- The prot ot ype f or mass product ion
will be checked soon.
- USB int erf ace f or t he CAMAC
cont roller wit hout board comput er will be developed.
Current st at us and Plan
March 2003 Y.Yasu
Relat ed URLs
- ht t p:/ / www-online.kek.j p/ ~yasu/ Parallel-CAMAC/
- ht t p:/ / www-online.kek.j p/ ~inoue/