annotate python/target/openrisc.lidl @ 290:7b38782ed496

File moves
author Windel Bouwman
date Sun, 24 Nov 2013 11:24:15 +0100
parents python/isa/openrisc.lidl@c9781c73e7e2
children 534b94b40aa8
rev   line source
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
1
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
2 // Openrisc description in lidl (lcfos isa description language)
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