summaryrefslogtreecommitdiffstats
path: root/ipxact
diff options
context:
space:
mode:
authorEvan Lojewski <github@meklort.com>2019-05-02 21:21:05 -0600
committerEvan Lojewski <github@meklort.com>2019-05-02 21:21:05 -0600
commit0e0e5e5b28c86da08c23a9ecb30bd08c4323d441 (patch)
tree96ada964bc1869d06dd7d5725df8da6a4c4594ae /ipxact
parent86106d98887a390f3a0dd54edf167cb5da1c2436 (diff)
downloadbcm5719-ortega-0e0e5e5b28c86da08c23a9ecb30bd08c4323d441.tar.gz
bcm5719-ortega-0e0e5e5b28c86da08c23a9ecb30bd08c4323d441.zip
Add initial RX port register generation.
Diffstat (limited to 'ipxact')
-rw-r--r--ipxact/APE.xml51
-rwxr-xr-xipxact/regen.sh2
2 files changed, 43 insertions, 10 deletions
diff --git a/ipxact/APE.xml b/ipxact/APE.xml
index a3f1d90..1ce1997 100644
--- a/ipxact/APE.xml
+++ b/ipxact/APE.xml
@@ -66,11 +66,51 @@
<ipxact:addressBlock>
<ipxact:name>RX_PORT</ipxact:name>
<ipxact:description>RX from network port, function 0</ipxact:description>
+ <ipxact:typeIdentifier>RX_PORT</ipxact:typeIdentifier>
<ipxact:baseAddress>0xA0000000</ipxact:baseAddress>
<!-- LINK: addressBlockDefinitionGroup: see 6.9.3, Address blockdefinition group -->
<!-- LINK: memoryBlockData: see 6.9.4, memoryBlockData group -->
<ipxact:usage>register</ipxact:usage>
<ipxact:volatile>false</ipxact:volatile>
+ <ipxact:register>
+ <ipxact:name>in</ipxact:name>
+ <ipxact:description>This is the memory range into which frames are directed towards the APE by the hardware.</ipxact:description>
+ <ipxact:addressOffset>0x0</ipxact:addressOffset>
+ <ipxact:dim>0x1000</ipxact:dim>
+ <!-- LINK: registerDefinitionGroup: see 6.11.3, Register definition group -->
+ <ipxact:size>32</ipxact:size>
+ <ipxact:volatile>true</ipxact:volatile>
+ <ipxact:field>
+ <ipxact:name>all</ipxact:name>
+ <ipxact:description>All bits</ipxact:description>
+ <ipxact:bitOffset>0</ipxact:bitOffset>
+ <ipxact:bitWidth>32</ipxact:bitWidth>
+ <ipxact:enumeratedValues>
+ <!-- LINK: enumeratedValue: see 6.11.10, Enumeration values -->
+ <ipxact:enumeratedValue>
+ <ipxact:name>BLOCK_WORDS</ipxact:name>
+ <ipxact:value>32</ipxact:value>
+ </ipxact:enumeratedValue>
+ <ipxact:enumeratedValue>
+ <ipxact:name>BLOCK_BYTES</ipxact:name>
+ <ipxact:value>128</ipxact:value>
+ </ipxact:enumeratedValue>
+
+ <ipxact:enumeratedValue>
+ <ipxact:name>Control Word</ipxact:name>
+ <ipxact:value>0</ipxact:value>
+ </ipxact:enumeratedValue>
+ <ipxact:enumeratedValue>
+ <ipxact:name>First Payload Word</ipxact:name>
+ <ipxact:value>12</ipxact:value>
+ </ipxact:enumeratedValue>
+ <ipxact:enumeratedValue>
+ <ipxact:name>Additional Payload Word</ipxact:name>
+ <ipxact:value>2</ipxact:value>
+ </ipxact:enumeratedValue>
+ </ipxact:enumeratedValues>
+ </ipxact:field>
+ </ipxact:register>
</ipxact:addressBlock>
</ipxact:memoryMap>
@@ -87,15 +127,6 @@
<!-- LINK: memoryBlockData: see 6.9.4, memoryBlockData group -->
<ipxact:usage>register</ipxact:usage>
<ipxact:volatile>false</ipxact:volatile>
- <ipxact:register>
- <ipxact:name>queue</ipxact:name>
- <ipxact:description>This is the memory range into which frames received and directed towards the APE are placed by the hardware. The hardware will tell you where in this region the frame has been placed.</ipxact:description>
- <ipxact:addressOffset>0x0</ipxact:addressOffset>
- <ipxact:dim>0x1000</ipxact:dim>
- <!-- LINK: registerDefinitionGroup: see 6.11.3, Register definition group -->
- <ipxact:size>32</ipxact:size>
- <ipxact:volatile>true</ipxact:volatile>
- </ipxact:register>
</ipxact:addressBlock>
</ipxact:memoryMap>
@@ -146,7 +177,7 @@
<ipxact:volatile>false</ipxact:volatile>
<ipxact:register>
<ipxact:name>out</ipxact:name>
- <ipxact:description>This is the memory range into which frames are directed towards the network byte the APE firmware.</ipxact:description>
+ <ipxact:description>This is the memory range into which frames are directed towards the network by the APE firmware.</ipxact:description>
<ipxact:addressOffset>0x0</ipxact:addressOffset>
<ipxact:dim>0x800</ipxact:dim>
<!-- LINK: registerDefinitionGroup: see 6.11.3, Register definition group -->
diff --git a/ipxact/regen.sh b/ipxact/regen.sh
index 976be00..85b19c3 100755
--- a/ipxact/regen.sh
+++ b/ipxact/regen.sh
@@ -46,6 +46,7 @@ mv APE_SHM*.h ../include
mv APE_FILTERS*.h ../include
mv APE_DEVICE*.h ../include
mv APE_TX_PORT*.h ../include
+mv APE_RX_PORT*.h ../include
# ${IPXACT} -p ${PROJECT} NVIC.xml APE_full.xml APE.s
${IPXACT} -p ${PROJECT} APE_full.xml -t asym APE_sym.s
@@ -57,4 +58,5 @@ rm APE_SHM*.cpp
rm APE_NVM*.cpp
rm APE_DEVICE*.cpp
rm APE_TX_PORT*.cpp
+rm APE_RX_PORT*.cpp
mv *.cpp ../simulator/
OpenPOWER on IntegriCloud