annotate python/target/openrisc.lidl @ 336:d1ecc493384e

Added spiffy armtoken class for bit fiddeling. Added cool test that checks for build repeatability
author Windel Bouwman
date Wed, 19 Feb 2014 22:32:15 +0100
parents 534b94b40aa8
children
rev   line source
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
1
292
534b94b40aa8 Fixup reorganize
Windel Bouwman
parents: 290
diff changeset
2 // Openrisc description in LIDL (lcfos isa description language)
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
3
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
4 // Register storage:
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
5 storage r {
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
6 width: 32
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
7 size: 32
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
8 }
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
9
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
10
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
11 instruction add {
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
12 encoding: '111111111DDDDDDAAAAAABBBBBB'
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
13 semantics: D = A + B
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
14 }
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
15
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
16
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
17 // ...
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
18
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
19 instruction push {
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
20 encoding: ''
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
21 semantics: {
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
22 sp = X
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
23 sp = sp - 4
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
24 }
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
25 }
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
26