Skip to content

Commit

Permalink
Instructions: Separate rocket custom instructions
Browse files Browse the repository at this point in the history
As standard instructions are synced from riscv-opcodes
  • Loading branch information
ZenithalHourlyRate committed Apr 2, 2022
1 parent 21f1ec1 commit cfac7a5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/scala/rocket/CustomInstructions.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// See LICENSE.SiFive for license details.
// See LICENSE.Berkeley for license details.

package freechips.rocketchip.rocket

import Chisel._

object CustomInstructions {
def CEASE = BitPat("b00110000010100000000000001110011")
def CFLUSH_D_L1 = BitPat("b111111000000?????000000001110011")
def CDISCARD_D_L1 = BitPat("b111111000010?????000000001110011")
}
1 change: 1 addition & 0 deletions src/main/scala/rocket/IDecode.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import freechips.rocketchip.tile.HasCoreParameters
import freechips.rocketchip.util._
import freechips.rocketchip.scie.SCIE
import Instructions._
import CustomInstructions._
import ALU._

abstract trait DecodeConstants extends HasCoreParameters
Expand Down

0 comments on commit cfac7a5

Please sign in to comment.