From 1ab25319a97a0863ac78b7dd05089563068ca917 Mon Sep 17 00:00:00 2001 From: Boran Car Date: Fri, 8 Mar 2019 21:02:01 +0000 Subject: [PATCH] Apply Hex-Five JEDEC ID --- src/main/scala/x300artydevkit/Config.scala | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/main/scala/x300artydevkit/Config.scala b/src/main/scala/x300artydevkit/Config.scala index 57abab89..9d766b0a 100644 --- a/src/main/scala/x300artydevkit/Config.scala +++ b/src/main/scala/x300artydevkit/Config.scala @@ -46,6 +46,12 @@ class WithDTSTimebase(timebase: Int) extends Config((site, here, up) => case DTSTimebase => BigInt(timebase) }) +class WithMVendorID(mvendorid: Int) extends Config((site, here, up) => +{ + case RocketTilesKey => up(RocketTilesKey, site) map { r => + r.copy(core = r.core.copy(mvendorid = mvendorid)) } +}) + class WithJtagDTMConfig(idcodeVersion: Int, idcodePartNum: Int, idcodeManufId: Int, debugIdleCycles: Int) extends Config((site, here, up) => { case JtagDTMKey => new JtagDTMConfig ( @@ -87,10 +93,11 @@ class X300ArtyDevKitConfig extends Config( new X300ArtyDevKitPeripherals ++ new WithDTSTimebase(32768) ++ new WithJtagDTMConfig( - idcodeVersion = 2, - idcodePartNum = 0x000, - idcodeManufId = 0x489, + idcodeVersion = 1, + idcodePartNum = 0x300, + idcodeManufId = 0x57C, debugIdleCycles = 5) ++ + new WithMVendorID(0x57C) ++ new WithNBreakpoints(8) ++ new WithNExtTopInterrupts(0) ++ new WithJtagDTM ++