REFACTOR: rename arty35t explicitly
This commit is contained in:
@@ -72,11 +72,11 @@ ifeq ($(SUB_PROJECT),nexysvideo)
|
|||||||
FPGA_BRAND ?= xilinx
|
FPGA_BRAND ?= xilinx
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(SUB_PROJECT),arty)
|
ifeq ($(SUB_PROJECT),arty35t)
|
||||||
# TODO: Fix with Arty
|
# TODO: Fix with Arty
|
||||||
SBT_PROJECT ?= fpga_platforms
|
SBT_PROJECT ?= fpga_platforms
|
||||||
MODEL ?= ArtyFPGATestHarness
|
MODEL ?= Arty35THarness
|
||||||
VLOG_MODEL ?= ArtyFPGATestHarness
|
VLOG_MODEL ?= Arty35THarness
|
||||||
MODEL_PACKAGE ?= chipyard.fpga.arty
|
MODEL_PACKAGE ?= chipyard.fpga.arty
|
||||||
CONFIG ?= TinyRocketArtyConfig
|
CONFIG ?= TinyRocketArtyConfig
|
||||||
CONFIG_PACKAGE ?= chipyard.fpga.arty
|
CONFIG_PACKAGE ?= chipyard.fpga.arty
|
||||||
|
|||||||
@@ -15,19 +15,19 @@ import chipyard.harness.{HarnessBinder}
|
|||||||
import chipyard.iobinders._
|
import chipyard.iobinders._
|
||||||
|
|
||||||
class WithArtyDebugResetHarnessBinder extends HarnessBinder({
|
class WithArtyDebugResetHarnessBinder extends HarnessBinder({
|
||||||
case (th: ArtyFPGATestHarness, port: DebugResetPort) => {
|
case (th: Arty35THarness, port: DebugResetPort) => {
|
||||||
th.dut_ndreset := port.io // Debug module reset
|
th.dut_ndreset := port.io // Debug module reset
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
class WithArtyJTAGResetHarnessBinder extends HarnessBinder({
|
class WithArtyJTAGResetHarnessBinder extends HarnessBinder({
|
||||||
case (th: ArtyFPGATestHarness, port: JTAGResetPort) => {
|
case (th: Arty35THarness, port: JTAGResetPort) => {
|
||||||
port.io := PowerOnResetFPGAOnly(th.clock_32MHz) // JTAG module reset
|
port.io := PowerOnResetFPGAOnly(th.clock_32MHz) // JTAG module reset
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
class WithArtyJTAGHarnessBinder extends HarnessBinder({
|
class WithArtyJTAGHarnessBinder extends HarnessBinder({
|
||||||
case (th: ArtyFPGATestHarness, port: JTAGPort) => {
|
case (th: Arty35THarness, port: JTAGPort) => {
|
||||||
val jtag_wire = Wire(new JTAGIO)
|
val jtag_wire = Wire(new JTAGIO)
|
||||||
jtag_wire.TDO.data := port.io.TDO
|
jtag_wire.TDO.data := port.io.TDO
|
||||||
jtag_wire.TDO.driven := true.B
|
jtag_wire.TDO.driven := true.B
|
||||||
@@ -62,7 +62,7 @@ class WithArtyJTAGHarnessBinder extends HarnessBinder({
|
|||||||
})
|
})
|
||||||
|
|
||||||
class WithArtyUARTHarnessBinder extends HarnessBinder({
|
class WithArtyUARTHarnessBinder extends HarnessBinder({
|
||||||
case (th: ArtyFPGATestHarness, port: UARTPort) => {
|
case (th: Arty35THarness, port: UARTPort) => {
|
||||||
withClockAndReset(th.clock_32MHz, th.ck_rst) {
|
withClockAndReset(th.clock_32MHz, th.ck_rst) {
|
||||||
IOBUF(th.uart_rxd_out, port.io.txd)
|
IOBUF(th.uart_rxd_out, port.io.txd)
|
||||||
port.io.rxd := IOBUF(th.uart_txd_in)
|
port.io.rxd := IOBUF(th.uart_txd_in)
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import sifive.fpgashells.shell.xilinx.artyshell.{ArtyShell}
|
|||||||
|
|
||||||
import chipyard.harness.{HasHarnessInstantiators}
|
import chipyard.harness.{HasHarnessInstantiators}
|
||||||
|
|
||||||
class ArtyFPGATestHarness(override implicit val p: Parameters) extends ArtyShell with HasHarnessInstantiators {
|
class Arty35THarness(override implicit val p: Parameters) extends ArtyShell with HasHarnessInstantiators {
|
||||||
// Convert harness resets from Bool to Reset type.
|
// Convert harness resets from Bool to Reset type.
|
||||||
val hReset = Wire(Reset())
|
val hReset = Wire(Reset())
|
||||||
hReset := ~ck_rst
|
hReset := ~ck_rst
|
||||||
|
|||||||
Reference in New Issue
Block a user