Development of a Pipeline Development of a Pipeline CAMAC cont - - PowerPoint PPT Presentation

development of a pipeline development of a pipeline camac
SMART_READER_LITE
LIVE PREVIEW

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),


slide-1
SLIDE 1

March 2003 Y.Yasu

Development of a Pipeline CAMAC cont roller wit h PC104plus single board comput er Development of a Pipeline CAMAC cont roller wit h PC104plus single board comput er

slide-2
SLIDE 2

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.

slide-3
SLIDE 3

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
slide-4
SLIDE 4

March 2003 Y.Yasu

Archit ect ure of Pipeline CAMAC Cont roller Archit ect ure of Pipeline CAMAC Cont roller

slide-5
SLIDE 5

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

slide-6
SLIDE 6

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

slide-7
SLIDE 7

March 2003 Y.Yasu

Overview of t he CAMAC cont roller Overview of t he CAMAC cont roller

slide-8
SLIDE 8

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

slide-9
SLIDE 9

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
slide-10
SLIDE 10

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

slide-11
SLIDE 11

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

slide-12
SLIDE 12

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

slide-13
SLIDE 13

March 2003 Y.Yasu

CAMAC/ DAQ Frame f ormat CAMAC/ DAQ Frame f ormat

slide-14
SLIDE 14

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

slide-15
SLIDE 15

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

slide-16
SLIDE 16

March 2003 Y.Yasu

PCI operat ion PCI operat ion

slide-17
SLIDE 17

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

slide-18
SLIDE 18

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 .)

slide-19
SLIDE 19

March 2003 Y.Yasu

Perf ormance Measurement Perf ormance Measurement

slide-20
SLIDE 20

March 2003 Y.Yasu

CAMAC t iming

Busy S1

slide-21
SLIDE 21

March 2003 Y.Yasu

CAMAC t iming (cont .)

Busy S1

slide-22
SLIDE 22

March 2003 Y.Yasu

Current st at us and Plan Current st at us and Plan

slide-23
SLIDE 23

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

slide-24
SLIDE 24

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/