Changeset 10156 for firmware/FAD/doc/memory_manager.tex
- Timestamp:
- 02/16/11 08:02:46 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
firmware/FAD/doc/memory_manager.tex
r10155 r10156 179 179 \begin{tabular}{||l||l|l|l|l||} 180 180 \hline 181 address & word 3 & word 2 & word 1 & word 0\\182 \hline 183 0x2000 & 12bit status + PLLLOCK & version & length & 0xFB01 \\184 0x2001 & 0xT1T0 & 0xT3T2 & 0xT5T4 & 0x00T6\\185 0x2002 & REFCLK cntr 10 & REFCLK cntr 32 & EVT cntr 10 & EVT cntr 32\\186 0x2003 & TRG-GEN-DIV & TRG-GEN-No& DCM-PS-STATUS & 0x0(cid)8(bid) \\187 0x2004 & DNA10 & DNA32 & DNA54 & 0x00DNA6\\188 0x2005 & more status & more status & time10 & time32\\189 0x2006 & Temp 3 & Temp 2 & Temp 1 & Temp 0\\190 0x2007 & DAC 3 & DAC 2 & DAC 1 & DAC 0\\191 0x2008 & DAC 7 & DAC 6 & DAC 5 & DAC 4\\192 \hline 193 0x2009 & 0x0030 & 0x0020 & 0x0010 & 0x0000\\194 0x200A & trg pos 3 & trg pos 2 & trg pos 1 & trg pos 0\\195 0x200B & ROI 3 & ROI 2 & ROI 1 & ROI 0\\196 0x200C & -fill- & -fill- & -fill- & -fill-\\197 0x200D & data adc3 & data adc2 & data adc1 & data adc0\\198 0x20.. & &&& ...\\199 0x2070 & data adc3 & data adc2 & data adc1 & data adc0\\200 \hline 201 0x20.. & &&& ...\\202 \hline 203 0x23?? & 0x0039 & 0x0029 & 0x0019 & 0x0009\\204 0x23?? & trg pos 3 & trg pos 2 & trg pos 1 & trg pos 0\\205 0x23?? & ROI 3 & ROI 2 & ROI 1 & ROI 0\\206 0x23?? & -fill- & -fill- & -fill- & -fill-\\207 0x23?? & data adc3 & data adc2 & data adc1 & data adc0\\208 0x23.. & &&& ...\\209 0x23?? & data adc3 & data adc2 & data adc1 & data adc0\\210 \hline 211 0x23?? & 0x0000 & 0x0000 & 0x04FE & 0x4242\\181 address & word 3 & word 2 & word 1 & word 0 \\ 182 \hline 183 0x2000 & 12bit status + PLLLOCK & version & length & 0xFB01 \\ 184 0x2001 & 0xT1T0 & 0xT3T2 & 0xT5T4 & 0x00T6 \\ 185 0x2002 & REFCLK cntr 10 & REFCLK cntr 32 & EVT cntr 10 & EVT cntr 32 \\ 186 0x2003 & TRG-GEN-DIV & TRG-GEN-No & DCM-PS-STATUS & 0x0(cid)8(bid) \\ 187 0x2004 & DNA10 & DNA32 & DNA54 & 0x00DNA6 \\ 188 0x2005 & more status & more status & time10 & time32 \\ 189 0x2006 & Temp 3 & Temp 2 & Temp 1 & Temp 0 \\ 190 0x2007 & DAC 3 & DAC 2 & DAC 1 & DAC 0 \\ 191 0x2008 & DAC 7 & DAC 6 & DAC 5 & DAC 4 \\ 192 \hline 193 0x2009 & 0x0030 & 0x0020 & 0x0010 & 0x0000 \\ 194 0x200A & trg pos 3 & trg pos 2 & trg pos 1 & trg pos 0 \\ 195 0x200B & ROI 3 & ROI 2 & ROI 1 & ROI 0 \\ 196 0x200C & -fill- & -fill- & -fill- & -fill- \\ 197 0x200D & data adc3 & data adc2 & data adc1 & data adc0 \\ 198 0x20.. & ... & ... & ... & ... \\ 199 0x2070 & data adc3 & data adc2 & data adc1 & data adc0 \\ 200 \hline 201 0x20.. & ... & ... & ... & ... \\ 202 \hline 203 0x23?? & 0x0039 & 0x0029 & 0x0019 & 0x0009 \\ 204 0x23?? & trg pos 3 & trg pos 2 & trg pos 1 & trg pos 0 \\ 205 0x23?? & ROI 3 & ROI 2 & ROI 1 & ROI 0 \\ 206 0x23?? & -fill- & -fill- & -fill- & -fill- \\ 207 0x23?? & data adc3 & data adc2 & data adc1 & data adc0 \\ 208 0x23.. & ... & ... & ... & ... \\ 209 0x23?? & data adc3 & data adc2 & data adc1 & data adc0 \\ 210 \hline 211 0x23?? & 0x0000 & 0x0000 & 0x04FE & 0x4242 \\ 212 212 \hline 213 213 \end {tabular} … … 357 357 channels in the W5300 FIFO. The header is included into the group of channels 0, while the package footer is included into group of channels 9. 358 358 359 In the next state called FIFO CALC. Here 360 361 359 \subsubsection{state: MM CONFIG} 360 Here all local variables are reset to zero. Let me shortly explain the meaning of each of them: 361 \begin{table}[htbp] 362 \begin{tabular}{lll} 363 roi\_max\_array & array (0 to 8) of integer range 0 to 1024 & maximum for each channel group\\ 364 channel\_size & array (0 to 8) of integer range 0 to W5300\_TX\_FIFO\_SIZE & size of each channel group in 16b words \\ 365 fifo\_write\_length & array (0 to 8) of integer range 0 to W5300\_TX\_FIFO\_SIZE & similar ??? \\ 366 fifo\_channels\_array & array (0 to 8) of integer range 0 to 9 & ??? \\ 367 \hline \\ 368 event_size & integer range 0 to RAM\_SIZE\_16B & ???\\ 369 event_size_ram & integer range 0 to RAM\_SIZE\_16B & ???\\ 370 event_size_ram_64b & integer range 0 to RAM\_SIZE\_64B & ??? \\ 371 \end {tabular} 372 \caption{ -no caption- -no label-} 373 %\label{} 374 \end{table} 375 376 The input is only: 377 \begin{table}[htbp] 378 \begin{tabular}{lll} 379 roi\_array & array (0 to 35) of integer range 0 to 1024 & ROI of each channel\\ 380 \end {tabular} 381 \caption{ -no caption- -no label-} 382 %\label{} 383 \end{table} 384 385 \subsubsection{states: MAX ROI\bf{n} and state: FIFO\_CALC} 386 \begin{itemize} 387 \item find maxium in roi\_array for each channel and store it as the maximum roi of each channel group inside roi\_max\_array. 388 \item calculate channel\_size(n) as $sum_{drs=0}^{3} \left( roi_{drs,n} + CHANNEL\_HEADER\_SIZE \right)$. 389 For $n=0$ the size of the package header is added and for $n=8$ the size of the package footer is added to the channel\_size. 390 So channel\_size(n) stores the number of 16bit words, which will be transmitted over ethernet for this particular group of channels n. \\ 391 Note: this is not the number of 16bit words, which will be stored inside the internal data RAM, since this number is defined by the maximum roi of each channel group. 392 \item calculate into how many pieces the package need to be devided. fifo\_write\_length(m) contains a certain sum of channel\_sizes. So again 393 fifo\_write\_length is a size measures in 16bit words, which will actually be transmitted over ethernet. 394 \end{itemize} 395 396 397 \subsubsection{states: RAM\_CALC\bf{n}} 398 Here we need to know how many of these packages will fit into our data RAM. 399 There 362 400 363 401 \end{document}
Note:
See TracChangeset
for help on using the changeset viewer.