OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [config/] [sparc/] [leon.md] - Blame information for rev 709

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 709 jeremybenn
;; Scheduling description for LEON.
2
;;   Copyright (C) 2010 Free Software Foundation, Inc.
3
;;
4
;; This file is part of GCC.
5
;;
6
;; GCC is free software; you can redistribute it and/or modify
7
;; it under the terms of the GNU General Public License as published by
8
;; the Free Software Foundation; either version 3, or (at your option)
9
;; any later version.
10
;;
11
;; GCC is distributed in the hope that it will be useful,
12
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
13
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
;; GNU General Public License for more details.
15
;;
16
;; You should have received a copy of the GNU General Public License
17
;; along with GCC; see the file COPYING3.  If not see
18
;; .
19
 
20
 
21
(define_automaton "leon")
22
 
23
(define_cpu_unit "leon_memory, leon_fpalu" "leon")
24
(define_cpu_unit "leon_fpmds" "leon")
25
(define_cpu_unit "write_buf" "leon")
26
 
27
(define_insn_reservation "leon_load" 1
28
  (and (eq_attr "cpu" "leon")
29
    (eq_attr "type" "load,sload,fpload"))
30
  "leon_memory")
31
 
32
(define_insn_reservation "leon_store" 1
33
  (and (eq_attr "cpu" "leon")
34
    (eq_attr "type" "store,fpstore"))
35
  "leon_memory+write_buf")
36
 
37
(define_insn_reservation "leon_fp_alu" 1
38
  (and (eq_attr "cpu" "leon")
39
    (eq_attr "type" "fp,fpmove"))
40
  "leon_fpalu, nothing")
41
 
42
(define_insn_reservation "leon_fp_mult" 1
43
  (and (eq_attr "cpu" "leon")
44
    (eq_attr "type" "fpmul"))
45
  "leon_fpmds, nothing")
46
 
47
(define_insn_reservation "leon_fp_div" 16
48
  (and (eq_attr "cpu" "leon")
49
    (eq_attr "type" "fpdivs,fpdivd"))
50
  "leon_fpmds, nothing*15")
51
 
52
(define_insn_reservation "leon_fp_sqrt" 23
53
  (and (eq_attr "cpu" "leon")
54
    (eq_attr "type" "fpsqrts,fpsqrtd"))
55
  "leon_fpmds, nothing*21")
56
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.