view python/target/openrisc.lidl @ 322:44f336460c2a

Half of use of burg spec for arm
author Windel Bouwman
date Mon, 27 Jan 2014 19:58:07 +0100
parents 534b94b40aa8
children
line wrap: on
line source


// Openrisc description in LIDL (lcfos isa description language)

// Register storage:
storage r {
  width: 32
  size: 32
}


instruction add {
  encoding: '111111111DDDDDDAAAAAABBBBBB'
  semantics: D = A + B
}


// ...

instruction push {
  encoding: ''
  semantics: {
    sp = X
    sp  = sp - 4
  }
}