1 ; OpenRISC 1000 architecture. -*- Scheme -*-
2 ; Copyright 2000-2014 Free Software Foundation, Inc.
3 ; Contributed for OR32 by Johan Rydberg, jrydberg@opencores.org
4 ; Modified by Julius Baxter, juliusbaxter@gmail.com
5 ; Modified by Peter Gavin, pgavin@gmail.com
7 ; This program is free software; you can redistribute it and/or modify
8 ; it under the terms of the GNU General Public License as published by
9 ; the Free Software Foundation; either version 3 of the License, or
10 ; (at your option) any later version.
12 ; This program is distributed in the hope that it will be useful,
13 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ; GNU General Public License for more details.
17 ; You should have received a copy of the GNU General Public License
18 ; along with this program; if not, see <http://www.gnu.org/licenses/>
20 (include "simplify.inc")
22 ; The OpenRISC family is a set of RISC microprocessor architectures with an
23 ; emphasis on scalability and is targetted at embedded use.
24 ; The CPU RTL development is a collaborative open source effort.
25 ; http://opencores.org/or1k
30 (comment "OpenRISC 1000")
31 (default-alignment aligned)
33 (machs or32 or32nd or64 or64nd)
37 ; Instruction set parameters.
41 ; Base insturction length. The insns are always 32 bits wide.
42 (base-insn-bitsize 32)
45 (define-pmacro OR32-MACHS or32,or32nd)
46 (define-pmacro OR64-MACHS or64,or64nd)
47 (define-pmacro ORBIS-MACHS or32,or32nd,or64,or64nd)
48 (define-pmacro ORFPX-MACHS or32,or32nd,or64,or64nd)
49 (define-pmacro ORFPX32-MACHS or32,or32nd,or64,or64nd)
50 (define-pmacro ORFPX64-MACHS or64,or64nd)
56 (comment "does not have delay slots")
59 (if (keep-mach? (or32 or32nd))
63 (comment "OpenRISC 1000 32-bit CPU family")
72 (comment "Generic OpenRISC 1000 32-bit CPU")
79 (comment "Generic OpenRISC 1000 32-bit CPU")
84 ; OpenRISC 1200 - 32-bit or1k CPU implementation
86 (name or1200) (comment "OpenRISC 1200 model")
89 (unit u-exec "Execution Unit" () 1 1 () () () ())
92 ; OpenRISC 1200 - 32-bit or1k CPU implementation
94 (name or1200nd) (comment "OpenRISC 1200 model")
97 (unit u-exec "Execution Unit" () 1 1 () () () ())
102 (if (keep-mach? (or64 or64nd))
106 (comment "OpenRISC 1000 64-bit CPU family")
110 (file-transform "64")
115 (comment "Generic OpenRISC 1000 64-bit CPU")
122 (comment "Generic OpenRISC 1000 ND 64-bit CPU")
124 (bfd-name "or1k64nd")
129 (include "or1kcommon.cpu")
130 (include "or1korbis.cpu")
131 (include "or1korfpx.cpu")