]> git.sur5r.net Git - freertos/blob
38ca42d1599ec458b45e0e899b039f875c158436
[freertos] /
1 <?xml version="1.0" encoding="iso-8859-1" ?>\r
2 \r
3 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">\r
4 \r
5     <xsl:template match="datasheet">\r
6         <html>\r
7             <head>\r
8                 <xsl:call-template name="css"/>\r
9             </head>\r
10             <body>\r
11                 <a name="top"/>\r
12                 <div>\r
13                     <xsl:apply-templates select="header"/>\r
14                 </div>\r
15                 <div class="dsheet">\r
16                     <div>\r
17                         <xsl:apply-templates select="project-settings"/>\r
18                     </div>\r
19                     <div>\r
20                         <div class="header">Table of Contents</div>\r
21                         <div class="content" >\r
22                             <a href="#generated_files">Generated Files</a>\r
23                             <br/>\r
24                             <a href="#ios">IO's</a>\r
25                             <br/>\r
26                             <a href="#cores">Hardware Instances</a>\r
27                             <br/>\r
28                             <a href="#firmware_cores">Firmware</a>\r
29                             <br/>\r
30                             <a href="#memmap">Memory Map</a>\r
31                             <!-- <a href="{header}_MemoryMap.xml" >Memory Map</a> -->\r
32                         </div>\r
33                     </div>\r
34 \r
35                     <!-- ======= Generated File's ======= -->\r
36                     <div>\r
37                         <p>\r
38                             <a name="generated_files"/>\r
39                             <div class="header">Generated Files</div>\r
40                         </p>\r
41                         <xsl:call-template name="generated_files"/>\r
42                     </div>\r
43 \r
44                     <!-- ======= IO's ======= -->\r
45                     <div>\r
46                         <p>\r
47                             <a name="ios"/>\r
48                             <div class="header">IO's</div>\r
49                         </p>\r
50                         <xsl:call-template name="ios"/>\r
51                     </div>\r
52 \r
53                     <br/>\r
54                     <!-- ===== CORES ====== -->\r
55                     <div>\r
56                         <a name="cores"/>\r
57                         <div class="header">\r
58                             Cores\r
59                         </div>\r
60                         <xsl:call-template name="cores"/>\r
61 \r
62                     </div>\r
63 \r
64                     <!-- ======= Firwmare ======= -->\r
65                     <div>\r
66                         <p>\r
67                             <a name="firmware_cores"/>\r
68                             <div class="header">Firmware</div>\r
69                         </p>\r
70                         <xsl:call-template name="firmware_cores"/>\r
71                     </div>\r
72 \r
73                     <!-- ===== MEMORY MAP ====== -->\r
74                     <div>\r
75                         <a name="memmap"/>\r
76                         <div class="header">\r
77                             Memory Map\r
78                         </div>\r
79                         <xsl:apply-templates select="memorysystem"/>\r
80                     </div>\r
81 \r
82                 </div>\r
83             </body>\r
84         </html>\r
85     </xsl:template>\r
86 \r
87 \r
88 \r
89     <xsl:template match="header">\r
90         <div class="title">\r
91             <h1>\r
92                 Data Sheet: <xsl:value-of select="."/>\r
93             </h1>\r
94             <!-- ======= IO's ======= \r
95       <div class="copyright">\r
96         Copyright 2008 Actel Corporation\r
97       </div>\r
98           -->\r
99         </div>\r
100     </xsl:template>\r
101 \r
102     <xsl:template match="project-settings">\r
103         <div class="header">Project Settings</div>\r
104 \r
105         <div class="content">\r
106             <table border="0" cellspacing="4">\r
107                 <tr>\r
108                     <td>\r
109                         <b>FAM: </b>\r
110                     </td>\r
111                     <td>\r
112                         <xsl:apply-templates select="fam"/>\r
113                     </td>\r
114                 </tr>\r
115                 <tr>\r
116                     <td>\r
117                         <b>Die: </b>\r
118                     </td>\r
119                     <td>\r
120                         <xsl:apply-templates select="die"/>\r
121                     </td>\r
122                 </tr>\r
123                 <tr>\r
124                     <td>\r
125                         <b>Package: </b>\r
126                     </td>\r
127                     <td>\r
128                         <xsl:apply-templates select="package"/>\r
129                     </td>\r
130                 </tr>\r
131 \r
132                 <tr>\r
133                     <td>\r
134                         <b>Speed Grade: </b>\r
135                     </td>\r
136                     <td>\r
137                         <xsl:apply-templates select="speed-grade"/>\r
138                     </td>\r
139                 </tr>\r
140 \r
141                 <tr>\r
142                     <td>\r
143                         <b>Voltage: </b>\r
144                     </td>\r
145                     <td>\r
146                         <xsl:apply-templates select="voltage"/>\r
147                     </td>\r
148                 </tr>\r
149 \r
150                 <tr>\r
151                     <td>\r
152                         <b>HDL: </b>\r
153                     </td>\r
154                     <td>\r
155                         <xsl:apply-templates select="hdl-type"/>\r
156                     </td>\r
157                 </tr>\r
158 \r
159                 <tr>\r
160                     <td>\r
161                         <b>Project Description: </b>\r
162                     </td>\r
163                     <td>\r
164                         <xsl:apply-templates select="project-description"/>\r
165                     </td>\r
166                 </tr>\r
167 \r
168                 <tr>\r
169                     <td>\r
170                         <b>Location: </b>\r
171                     </td>\r
172                     <td>\r
173                         <xsl:apply-templates select="location"/>\r
174                     </td>\r
175                 </tr>\r
176 \r
177                 <tr>\r
178                     <td>\r
179                         <b>State (Time): </b>\r
180                     </td>\r
181                     <td>\r
182                         <xsl:apply-templates select="state"/>\r
183                     </td>\r
184                 </tr>\r
185             </table>\r
186         </div>\r
187         <br/>\r
188     </xsl:template>\r
189 \r
190     <!-- /////////////////////////////////////////////////////////  -->\r
191 \r
192     <xsl:template name="generated_files">\r
193         <div class="content">\r
194             <xsl:for-each select="fileset">\r
195                 <b>File set:  </b>\r
196                 <xsl:value-of select="name"/>\r
197                 <br/>\r
198 \r
199                 <xsl:for-each select="file">\r
200                     <li>\r
201                         <xsl:value-of select="."/>\r
202                     </li>\r
203                 </xsl:for-each>\r
204                 <br/>\r
205             </xsl:for-each>\r
206         </div>\r
207         <xsl:call-template name="top-link"/>\r
208     </xsl:template>\r
209 \r
210 \r
211     <!-- /////////////////////////////////////////////////////////  -->\r
212 \r
213     <xsl:template name="print-ios">\r
214         <td>\r
215             <xsl:apply-templates select="port-name"/>\r
216         </td>\r
217         <td>\r
218             <xsl:apply-templates select="direction"/>\r
219         </td>\r
220         <td>\r
221             <xsl:apply-templates select="pin-number"/>\r
222         </td>\r
223         <td>\r
224             <xsl:apply-templates select="io-standard"/>\r
225         </td>\r
226     </xsl:template>\r
227 \r
228     <xsl:template name="ios">\r
229         <xsl:choose>\r
230             <xsl:when test="count(io) &gt; 0">\r
231                 <table class="ios"  align="center"  border="1" width="75%" cellspacing="0" cellpadding="4">\r
232                     <tr>\r
233                         <th>\r
234                             Port Name\r
235                         </th>\r
236                         <th>\r
237                             Direction\r
238                         </th>\r
239                         <th>\r
240                             Pin\r
241                         </th>\r
242                         <th>\r
243                             I/O Standard\r
244                         </th>\r
245                     </tr>\r
246                     <xsl:for-each select="io">\r
247                         <tr>\r
248                             <xsl:call-template name="print-ios"/>\r
249                         </tr>\r
250                     </xsl:for-each>\r
251                 </table>\r
252             </xsl:when>\r
253             <xsl:otherwise>\r
254                 <i>No IO's </i>\r
255                 <br/>\r
256                 <br/>\r
257             </xsl:otherwise>\r
258         </xsl:choose>\r
259         <xsl:call-template name="top-link"/>\r
260     </xsl:template>\r
261 \r
262 \r
263     <!-- /////////////////////////////////////////////////////////  -->\r
264 \r
265     <xsl:template name="firmware_cores">\r
266         <xsl:choose>\r
267             <xsl:when test="count(firmware_core) &gt; 0">\r
268                 <!-- Core TOC -->\r
269                 <div class="content">\r
270                     <b>Software IDE: </b>\r
271                     <xsl:value-of select="/datasheet/project-settings/swide-toolchain"/>\r
272                     <br/>\r
273                     <br/>\r
274 \r
275                     <span class="instances">Drivers:</span>\r
276                     <br/>\r
277                     <xsl:for-each select="firmware_core">\r
278                         <a href="#{core-name}">\r
279                             <xsl:value-of select="core-name"/>\r
280                         </a>\r
281 \r
282                         <br/>\r
283                     </xsl:for-each>\r
284                     <br/>\r
285                     <div class="toplinks">\r
286                         <xsl:call-template name="top-link"/>\r
287                     </div>\r
288                 </div>\r
289 \r
290                 <xsl:for-each select="firmware_core">\r
291                     <div class="content">\r
292                         <!-- Core TOC -->\r
293                         <a name="{core-name}"/>\r
294 \r
295                         <table class="cores" width="97%" border="0" cellspacing="0" cellpadding="14">\r
296                             <!--border="1"  cellspacing="0" cellpadding="14"> -->\r
297                             <xsl:choose>\r
298 \r
299                                 <xsl:when test='@type="FirmWareModule"'>\r
300                                     <xsl:call-template name="print-cores-spirit"/>\r
301                                 </xsl:when>\r
302 \r
303                             </xsl:choose>\r
304 \r
305                         </table>\r
306                         <div class="toplinks">\r
307                             <a href="#cores">instance list</a>, <xsl:call-template name="top-link"/>\r
308                         </div>\r
309                     </div>\r
310                     <br/>\r
311                 </xsl:for-each>\r
312                 <br/>\r
313             </xsl:when>\r
314             <xsl:otherwise>\r
315                 <br/>\r
316                 <i>No Firmware Generated.  Design may not contain any processor subsystems, or firmware have not been downloaded to your vault</i>\r
317                 <br/>\r
318                 <br/>\r
319                 <xsl:call-template name="top-link"/>\r
320                 <br/>\r
321                 <br/>\r
322             </xsl:otherwise>\r
323         </xsl:choose>\r
324     </xsl:template>\r
325 \r
326 \r
327 \r
328     <!-- /////////////////////////////////////////////////////////  -->\r
329 \r
330     <xsl:template name="cores">\r
331         <xsl:choose>\r
332 \r
333             <xsl:when test="count(core) &gt; 0">\r
334                 <!-- Core TOC -->\r
335                 <div class="content">\r
336                     <span class="instances">Instances:</span>\r
337                     <br/>\r
338                     <xsl:for-each select="core">\r
339                         <a href="#{core-name}">\r
340                             <xsl:value-of select="core-name"/>\r
341                         </a>\r
342 \r
343                         <br/>\r
344                     </xsl:for-each>\r
345                     <br/>\r
346                     <div class="toplinks">\r
347                         <xsl:call-template name="top-link"/>\r
348                     </div>\r
349                 </div>\r
350 \r
351                 <xsl:for-each select="core">\r
352                     <div class="content">\r
353                         <!-- Core TOC -->\r
354                         <a name="{core-name}"/>\r
355 \r
356                         <table class="cores" width="97%" border="0" cellspacing="0" cellpadding="14">\r
357                             <!--border="1"  cellspacing="0" cellpadding="14"> -->\r
358                             <xsl:choose>\r
359                                 <xsl:when test='@type="ComponentModule"'>\r
360                                     <xsl:call-template name="print-cores-comp"/>\r
361                                 </xsl:when>\r
362                                 <xsl:when test='@type="SpiritModule"'>\r
363                                     <xsl:call-template name="print-cores-spirit"/>\r
364                                 </xsl:when>\r
365                                 <xsl:when test='@type="AdlibModule"'>\r
366                                     <xsl:call-template name="print-cores-adlib"/>\r
367                                 </xsl:when>\r
368                                 <xsl:when test='@type="HdlModule"'>\r
369                                     <xsl:call-template name="print-cores-hdl"/>\r
370                                 </xsl:when>\r
371                             </xsl:choose>\r
372 \r
373                         </table>\r
374                         <div class="toplinks">\r
375                             <a href="#cores">instance list</a>, <xsl:call-template name="top-link"/>\r
376                         </div>\r
377                     </div>\r
378                     <br/>\r
379                 </xsl:for-each>\r
380                 <br/>\r
381             </xsl:when>\r
382             <xsl:otherwise>\r
383                 <br/>\r
384                 <i>No Instances</i>\r
385                 <br/>\r
386                 <br/>\r
387                 <xsl:call-template name="top-link"/>\r
388                 <br/>\r
389                 <br/>\r
390             </xsl:otherwise>\r
391         </xsl:choose>\r
392     </xsl:template>\r
393 \r
394     <xsl:template name="print-cores-comp">\r
395         <tr>\r
396             <td>\r
397                 <table border="0">\r
398                     <xsl:call-template name="print-cores"/>\r
399                     <tr>\r
400                         <td>\r
401                             <b>Type: </b>\r
402                         </td>\r
403                         <td>\r
404                             <xsl:apply-templates select="core-exttype"/>\r
405                         </td>\r
406                     </tr>\r
407                     <tr>\r
408                         <td>\r
409                             <b>Location: </b>\r
410                         </td>\r
411                         <td>\r
412                             <xsl:apply-templates select="core-location"/>\r
413                         </td>\r
414                     </tr>\r
415                 </table>\r
416             </td>\r
417         </tr>\r
418     </xsl:template>\r
419 \r
420     <xsl:template name="print-cores-spirit">\r
421         <tr>\r
422             <td>\r
423                 <table border="0">\r
424                     <xsl:call-template name="print-cores"/>\r
425                     <tr>\r
426                         <td>\r
427                             <b>Type: </b>\r
428                         </td>\r
429                         <td>\r
430                             <xsl:apply-templates select="core-exttype"/>\r
431                         </td>\r
432                     </tr>\r
433                     <tr>\r
434                         <td>\r
435                             <b>Vendor: </b>\r
436                         </td>\r
437                         <td>\r
438                             <xsl:apply-templates select="core-vendor"/>\r
439                         </td>\r
440                     </tr>\r
441                     <tr>\r
442                         <td>\r
443                             <b>Library: </b>\r
444                         </td>\r
445                         <td>\r
446                             <xsl:apply-templates select="core-lib"/>\r
447                         </td>\r
448                     </tr>\r
449                     <tr>\r
450                         <td>\r
451                             <b>Core Name: </b>\r
452                         </td>\r
453                         <td>\r
454                             <xsl:apply-templates select="core-intname"/>\r
455                         </td>\r
456                     </tr>\r
457                     <tr>\r
458                         <td>\r
459                             <b>Version: </b>\r
460                         </td>\r
461                         <td>\r
462                             <xsl:apply-templates select="core-ver"/>\r
463                         </td>\r
464                     </tr>\r
465                     <tr>\r
466                         <td>\r
467                             <b>Description: </b>\r
468                         </td>\r
469                         <td>\r
470                             <xsl:apply-templates select="core-desc"/>\r
471                         </td>\r
472                     </tr>\r
473                     <tr>\r
474                         <td>\r
475                             <b>Parameters: </b>\r
476                         </td>\r
477                         <td>\r
478                             <xsl:call-template name="print-spirit-params"/>\r
479                         </td>\r
480                     </tr>\r
481                 </table>\r
482             </td>\r
483         </tr>\r
484     </xsl:template>\r
485 \r
486     <xsl:template name="print-spirit-params" >\r
487         <xsl:if test="count(core-param) > 0">\r
488             <div style="background-color: #F0F0F0; " >\r
489                 <br/>\r
490                 <table>\r
491                     <!-- <tr>\r
492             <th>\r
493               Name\r
494             </th>\r
495             <th>\r
496               Value\r
497             </th>\r
498           </tr> -->\r
499                     <xsl:for-each select="core-param">\r
500                         <xsl:call-template name="print-core-params"/>\r
501                     </xsl:for-each>\r
502                 </table>\r
503             </div>\r
504         </xsl:if>\r
505         <xsl:if test="count(core-param) &lt; 1">\r
506             <i>No parameters</i>\r
507         </xsl:if>\r
508     </xsl:template>\r
509 \r
510     <xsl:template name="print-cores-adlib">\r
511         <tr>\r
512             <td>\r
513                 <table border="0">\r
514                     <xsl:call-template name="print-cores"/>\r
515                     <tr>\r
516                         <td>\r
517                             <b>Cell Type: </b>\r
518                         </td>\r
519                         <td>\r
520                             <xsl:apply-templates select="core-exttype"/>\r
521                         </td>\r
522                     </tr>\r
523                 </table>\r
524 \r
525             </td>\r
526         </tr>\r
527     </xsl:template>\r
528 \r
529     <xsl:template name="print-cores-hdl">\r
530         <tr>\r
531             <td>\r
532                 <table border="0">\r
533                     <xsl:call-template name="print-cores"/>\r
534                     <tr>\r
535                         <td>\r
536                             <b>Module Name: </b>\r
537                         </td>\r
538                         <td>\r
539                             <xsl:apply-templates select="core-exttype"/>\r
540                         </td>\r
541                     </tr>\r
542                     <tr>\r
543                         <td>\r
544                             <b>HDL File: </b>\r
545                         </td>\r
546                         <td>\r
547                             <xsl:apply-templates select="core-location"/>\r
548                         </td>\r
549                     </tr>\r
550                 </table>\r
551             </td>\r
552         </tr>\r
553     </xsl:template>\r
554 \r
555     <xsl:template name="print-cores">\r
556         <tr>\r
557             <td width="200">\r
558                 <b>Instance Name: </b>\r
559             </td>\r
560             <td>\r
561                 <xsl:apply-templates select="core-name"/>\r
562             </td>\r
563         </tr>\r
564     </xsl:template>\r
565 \r
566     <xsl:template name="print-core-params">\r
567         <tr>\r
568             <td>\r
569                 <b class="params-name">\r
570                     <xsl:apply-templates select="param-hdlname"/> [ <xsl:apply-templates select="param-name"/> ]\r
571                 </b>\r
572             </td>\r
573             <td>\r
574                 <xsl:apply-templates select="param-hdlvalue"/> [ <xsl:apply-templates select="param-value"/> ]\r
575             </td>\r
576         </tr>\r
577     </xsl:template>\r
578 \r
579 \r
580 \r
581 \r
582     <!--/////////////////////////////////////////////////////////-->\r
583 \r
584     <xsl:template match="port-name|direction|pin-number|io-standard">\r
585         <xsl:value-of select="."/>\r
586     </xsl:template >\r
587 \r
588     <xsl:template match="core-name|core-type|core-exttype">\r
589         <xsl:value-of select="."/>\r
590     </xsl:template >\r
591 \r
592     <xsl:template match="core-vendor|core-lib|core-intname|core-ver|core-desc">\r
593         <xsl:value-of select="."/>\r
594     </xsl:template >\r
595 \r
596     <xsl:template match="core-location">\r
597         <xsl:value-of select="."/>\r
598     </xsl:template >\r
599 \r
600     <xsl:template match="fam|die|package|hdl-type|location|state">\r
601         <xsl:value-of select="."/>\r
602     </xsl:template >\r
603 \r
604     <xsl:template match="param-name|param-value|param-tag|param-hdlname|param-hdlvalue">\r
605         <xsl:value-of select="."/>\r
606     </xsl:template >\r
607 \r
608 \r
609     <xsl:template name="top-link">\r
610         <a href="#top">top of page</a>\r
611     </xsl:template>\r
612 \r
613 \r
614 \r
615     <!--=============================MEMORY MAP===================================-->\r
616 \r
617     <xsl:template match="memorysystem">\r
618 \r
619         <div class="content">\r
620             <xsl:apply-templates select="description"/>\r
621         </div>\r
622         <div>\r
623             <xsl:apply-templates select="subsystems"/>\r
624         </div>\r
625 \r
626     </xsl:template>\r
627 \r
628 \r
629     <xsl:template match="subsystems">\r
630 \r
631         <xsl:for-each select="subsystem">\r
632             <li>\r
633                 <div class="content">\r
634                     <a href="#{name} Memory Map">\r
635                         <xsl:value-of select="node()"/>\r
636                     </a>\r
637                 </div>\r
638             </li>\r
639         </xsl:for-each>\r
640 \r
641         <div class="content">\r
642             <div class="toplinks">\r
643                 <xsl:call-template name="top-link"/>\r
644             </div>\r
645         </div>\r
646         <br/>\r
647 \r
648         <hr></hr>\r
649         <xsl:apply-templates select="subsystem"/>\r
650 \r
651     </xsl:template>\r
652 \r
653     <xsl:template match="subsystem">\r
654         <div class="content">\r
655             <h2>\r
656                 <a name="{name} Memory Map">\r
657                     <xsl:value-of select="name"/>\r
658                 </a> Subsystem\r
659             </h2>\r
660             Master(s) on this bus:\r
661             <xsl:apply-templates select="master"/>\r
662             <br></br><br></br>\r
663 \r
664             <xsl:apply-templates select="addressNames" />\r
665             <a href="#memmap">subsystem list</a>,\r
666             <xsl:call-template name="top-link"/>\r
667 \r
668             <br/><br/>\r
669             <hr></hr>\r
670             <xsl:apply-templates select="slave"/>\r
671         </div>\r
672     </xsl:template>\r
673 \r
674     <xsl:template match="title">\r
675         <span style="color:#000000">\r
676             <xsl:value-of select="text()"/>\r
677         </span>\r
678     </xsl:template>\r
679 \r
680     <xsl:template match="description">\r
681         <xsl:value-of select="text()"/>\r
682     </xsl:template>\r
683 \r
684     <xsl:template match="master">\r
685         <li>\r
686             <div class="content">\r
687                 <xsl:value-of select="text()"/>\r
688             </div>\r
689         </li>\r
690     </xsl:template>\r
691 \r
692     <xsl:template match="addressNames">\r
693         <table class="regs" border="1" cellspace="0" cellpadding="10"  align="center" >\r
694             <xsl:if test="count = 1">\r
695                 <tr bgcolor="#aaaacc">\r
696                     <th rowspan="1"></th>\r
697                     <th colspan="2">Address Range</th>\r
698                 </tr>\r
699             </xsl:if>\r
700             <xsl:if test="count &gt; 1">\r
701                 <tr bgcolor="#aaaacc">\r
702                     <th rowspan="2"></th>\r
703                     <th colspan="2">Address Range</th>\r
704                 </tr>\r
705                 <tr>\r
706                     <xsl:for-each select="name">\r
707                         <th bgcolor="#aaaacc">\r
708                             <xsl:value-of select="text()"/>\r
709                         </th>\r
710                     </xsl:for-each>\r
711                 </tr>\r
712             </xsl:if>\r
713 \r
714             <xsl:for-each select="../slave">\r
715                 <tr>\r
716                     <th cellspace="0" colspan="1">\r
717                         <b>\r
718                             <a class="toplinks" href="#{name}_{memoryMap/name} Register">\r
719                                 <xsl:value-of select="name"/> : <xsl:value-of select="memoryMap/name"/>\r
720                             </a>\r
721                         </b>\r
722                     </th>\r
723                     <xsl:for-each select="fullAddressSpace">\r
724                         <td align="center">\r
725                             <xsl:value-of select="text()"/>\r
726                         </td>\r
727                     </xsl:for-each>\r
728                 </tr>\r
729             </xsl:for-each>\r
730 \r
731         </table>\r
732     </xsl:template>\r
733 \r
734     <xsl:template match="slave">\r
735         <div class="content">\r
736             <h3>\r
737                 <a name="{name}_{memoryMap/name} Register">\r
738                     <xsl:value-of select="name"/> : <xsl:value-of select="memoryMap/name"/> Memory Map [\r
739                     <xsl:value-of select="fullAddressSpace"/> ]\r
740                 </a>\r
741             </h3>\r
742         </div>\r
743         <div class="mmrange">\r
744 \r
745             <i>range: </i>\r
746             <xsl:apply-templates select="range"/>\r
747 \r
748         </div>\r
749         <xsl:if test="memoryMap/addressBlock/register">\r
750             <xsl:apply-templates select="memoryMap/addressBlock"/>\r
751         </xsl:if>\r
752         <a class="toplinks" href="#{../name} Memory Map">\r
753             back to <xsl:value-of select="../name"/> Memory Map\r
754         </a>\r
755         <br/>\r
756         <br/>\r
757         <hr></hr>\r
758     </xsl:template>\r
759 \r
760     <xsl:template match="addressBlock">\r
761         <table class="regs" border="2" cellspace="0" cellpadding="4" align="center">\r
762             <tr bgcolor="#aaaacc">\r
763                 <th>Address</th>\r
764                 <th>Name</th>\r
765                 <th>R/W</th>\r
766                 <th>Width</th>\r
767                 <th>Reset Value</th>\r
768                 <th>Description</th>\r
769             </tr>\r
770             <xsl:for-each select="register">\r
771                 <tr>\r
772                     <td align="center" nowrap="true">\r
773                         <xsl:value-of select="absoluteAddress"/>\r
774                     </td>\r
775                     <xsl:choose>\r
776                         <xsl:when test="field">\r
777                             <td align="center">\r
778                                 <a class="toplinks" href="#{../../../name}_{name}">\r
779                                     <xsl:value-of select="name"/>\r
780                                 </a>\r
781                             </td>\r
782                         </xsl:when>\r
783                         <xsl:otherwise>\r
784                             <td align="center">\r
785                                 <xsl:value-of select="name"/>\r
786                             </td>\r
787                         </xsl:otherwise>\r
788                     </xsl:choose>\r
789                     <td align="center" nowrap="true">\r
790                         <xsl:value-of select="access"/>\r
791                     </td>\r
792                     <td align="center">\r
793                         <xsl:value-of select="size"/>\r
794                     </td>\r
795                     <td align="center">\r
796                         <xsl:value-of select="resetValue"/>\r
797                     </td>\r
798                     <td align="left">\r
799                         <xsl:value-of select="description"/>\r
800                     </td>\r
801                 </tr>\r
802             </xsl:for-each>\r
803         </table>\r
804 \r
805         <xsl:if test="register/field">\r
806             <a class="toplinks" href="#{../../../name} Memory Map">\r
807                 back to <xsl:value-of select="../../../name"/> Memory Map\r
808             </a>\r
809             <xsl:for-each select="register">\r
810                 <div class="content">\r
811                     <h4>\r
812                         <a class="register-details" name="{../../../name}_{name}">\r
813                             <xsl:value-of select="name"/> register details [ <xsl:value-of select="absoluteAddress"/> ] :\r
814                         </a>\r
815                     </h4>\r
816                 </div>\r
817                 <div class="regwidth">\r
818 \r
819                     <i>width: </i>\r
820                     <xsl:apply-templates select="size"/>-bit\r
821 \r
822                 </div>\r
823 \r
824                 <table class="regs" border="2" cellspace="0" cellpadding="4" align="center" >\r
825                     <tr bgcolor="#aaaacc">\r
826                         <th align="left">Bit Number</th>\r
827                         <th>Name</th>\r
828                         <th>R/W</th>\r
829                         <th>Description</th>\r
830                     </tr>\r
831                     <xsl:for-each select="field">\r
832                         <tr>\r
833                             <td align="left">\r
834                                 <xsl:value-of select="bitNumber"/>\r
835                             </td>\r
836                             <td align="center">\r
837                                 <xsl:value-of select="name"/>\r
838                             </td>\r
839                             <td align="center" nowrap="true">\r
840                                 <xsl:value-of select="access"/>\r
841                             </td>\r
842                             <td align="left">\r
843                                 <xsl:value-of select="description"/>\r
844                             </td>\r
845                         </tr>\r
846                     </xsl:for-each>\r
847                 </table>\r
848 \r
849                 <a class="toplinks" href="#{../../../name}_{../../../memoryMap/name} Register">\r
850                     back to <xsl:value-of select="../../../name"/> Registers\r
851                 </a>\r
852                 <br/>\r
853                 <br/>\r
854             </xsl:for-each>\r
855             <br/>\r
856             <br/>\r
857         </xsl:if>\r
858 \r
859     </xsl:template>\r
860 \r
861     <xsl:template match="range">\r
862         <xsl:value-of select="."/>\r
863     </xsl:template >\r
864 \r
865     <!--==========================END MEMORY MAP===================================-->\r
866 \r
867 \r
868 \r
869     <!--============================= CSS ===================================-->\r
870     <xsl:template name="css">\r
871         <style>\r
872 \r
873             html\r
874             {\r
875             background-color:darkgray;\r
876             }\r
877 \r
878             body\r
879             {\r
880             font-family:arial;\r
881             font-size: 11pt;\r
882             text-align:center;\r
883             }\r
884 \r
885 \r
886             th\r
887             {\r
888             background-color: #F0F0F0;\r
889             }\r
890 \r
891             table.cores\r
892             {\r
893             background-color: #F0F0F0;\r
894             border-color: #B0B0B0;\r
895             border-style:solid;\r
896             border-width:1px;\r
897             }\r
898 \r
899             table.cores td\r
900             {\r
901             vertical-align:top;\r
902             }\r
903 \r
904             table.regs,\r
905             table.ios\r
906             {\r
907             border-color: #B0B0B0;\r
908             border-style:solid;\r
909             border-width:1px;\r
910             border-spacing:0px;\r
911             border-collapse:collapse;\r
912             width=75%;\r
913             font-family:couriernew;\r
914             font-size: 11pt;\r
915             }\r
916 \r
917             table.regs th\r
918             table.ios th\r
919             {\r
920             border-color: #B0B0B0;\r
921             border-width:1px;\r
922             color: darkslategray;\r
923             font-weight:bold;\r
924             }\r
925 \r
926 \r
927             table.ios td\r
928             {\r
929             text-align:center;\r
930             }\r
931 \r
932 \r
933             table.params\r
934             {\r
935             border-color: #D0D0D0;\r
936             border-style:solid;\r
937             border-width:0px;\r
938             border-spacing:0px;\r
939             border-collapse:collapse;\r
940             }\r
941 \r
942 \r
943             table.params th\r
944             {\r
945             border-color: #D0D0D0;\r
946             border-width:1px;\r
947             color: black;\r
948             font-weight:bold;\r
949             }\r
950 \r
951             table.params td\r
952             {\r
953             text-align:center;\r
954             }\r
955 \r
956             b.params-name\r
957             {\r
958             color: #505050   ;\r
959 \r
960             }\r
961 \r
962 \r
963             div.header\r
964             {\r
965             padding-top: 7px;\r
966             padding-bottom: 7px;\r
967             color:#003399;\r
968             background-color: #D0D0D0;\r
969             width=100%;\r
970             font-family:arial;\r
971             font-size:14pt;\r
972             font-weight: bold;\r
973             text-align: center;\r
974             }\r
975 \r
976             div.title\r
977             {\r
978             padding-top: 30px;\r
979             margin: auto;\r
980             color:#D0D0D0;\r
981             background-color:#003399 ;\r
982 \r
983             text-align: center;\r
984             width: 1000px;\r
985             padding-left:30px;\r
986             padding-right:30px;\r
987             }\r
988 \r
989             div.dsheet\r
990             {\r
991             width: 1000px;\r
992             margin: auto;\r
993             text-align: left\r
994 \r
995             color:#003399;\r
996             background-color: white;\r
997 \r
998             padding-top: 30px;\r
999             padding-bottom: 30px;\r
1000             padding-left:30px;\r
1001             padding-right:30px;\r
1002             }\r
1003 \r
1004             div.content\r
1005             {\r
1006             padding-top: 10px;\r
1007             padding-left:10px;\r
1008             padding-right:10px;\r
1009 \r
1010             text-align: left;\r
1011             font-size: 13pt;\r
1012             font-weight: normal;\r
1013             }\r
1014 \r
1015             div.copyright\r
1016             {\r
1017             text-align:right;\r
1018             font-size:9pt;\r
1019             font-style:italic;\r
1020             font-weight:normal;\r
1021             }\r
1022 \r
1023             div.links\r
1024             {\r
1025             text-align:left;\r
1026             }\r
1027 \r
1028             b\r
1029             {\r
1030             color:darkslategray\r
1031             }\r
1032 \r
1033             hr\r
1034             {\r
1035             width=100%;\r
1036             }\r
1037 \r
1038             .instances\r
1039             {\r
1040             font-size:14pt;\r
1041             text-align:left;\r
1042             }\r
1043 \r
1044             .toplinks\r
1045             {\r
1046             font-size:10pt;\r
1047             text-align:left;\r
1048             }\r
1049 \r
1050             .register-details\r
1051             {\r
1052             text-indent:20px;\r
1053             }\r
1054 \r
1055             .mmrange\r
1056             {\r
1057             text-indent:10px;\r
1058             font-size:11pt;\r
1059             text-align: left;\r
1060             padding-bottom: 20px;\r
1061 \r
1062             }\r
1063 \r
1064             .regwidth\r
1065             {\r
1066             text-indent:24pt;\r
1067             font-size:11pt;\r
1068             text-align: left;\r
1069             padding-bottom: 20px;\r
1070             }\r
1071 \r
1072         </style>\r
1073 \r
1074         <!--============================= END CSS ===================================-->\r
1075     </xsl:template>\r
1076 \r
1077 </xsl:stylesheet>\r