2012-10-08 05:15:54 +02:00
|
|
|
package rocket
|
|
|
|
import rocket.constants._
|
|
|
|
|
|
|
|
import Chisel._
|
|
|
|
import scala.math._
|
|
|
|
|
|
|
|
//TODO: When compiler bug SI-5604 is fixed in 2.10, change object Constants to
|
|
|
|
// package object rocket and remove import Constants._'s from other files
|
2012-10-08 22:06:45 +02:00
|
|
|
object Constants extends
|
|
|
|
ScalarOpConstants with
|
2012-10-08 05:15:54 +02:00
|
|
|
MemoryOpConstants with
|
|
|
|
PCRConstants with
|
|
|
|
InterruptConstants with
|
|
|
|
AddressConstants with
|
|
|
|
VectorOpConstants with
|
|
|
|
TLBConstants with
|
|
|
|
MemoryInterfaceConstants
|
|
|
|
{
|
2012-10-08 22:06:45 +02:00
|
|
|
def HAVE_RVC = false
|
|
|
|
def HAVE_FPU = true
|
|
|
|
def HAVE_VEC = true
|
2012-10-08 05:15:54 +02:00
|
|
|
|
|
|
|
val MAX_THREADS =
|
|
|
|
hwacha.Constants.NUM_PVFB * hwacha.Constants.WIDTH_PVFB / hwacha.Constants.SZ_BANK
|
|
|
|
|
|
|
|
val START_ADDR = 0x2000
|
|
|
|
|
|
|
|
}
|