annotate python/target/openrisc.lidl @ 306:b145f8e6050b

Start on c3 rewrite
author Windel Bouwman
date Mon, 09 Dec 2013 19:00:21 +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