Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
Apply Hex-Five JEDEC ID
Browse files Browse the repository at this point in the history
  • Loading branch information
borancar committed Mar 8, 2019
1 parent 548d79c commit 1ab2531
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/main/scala/x300artydevkit/Config.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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 ++
Expand Down

0 comments on commit 1ab2531

Please sign in to comment.