freedom: bump submodules to their respective masters
This commit is contained in:
@ -8,9 +8,9 @@ import freechips.rocketchip.coreplex._
|
||||
import freechips.rocketchip.devices.debug._
|
||||
import freechips.rocketchip.devices.tilelink._
|
||||
import freechips.rocketchip.diplomacy._
|
||||
import freechips.rocketchip.util.ResetCatchAndSync
|
||||
import freechips.rocketchip.system._
|
||||
|
||||
import sifive.blocks.util.{ResetCatchAndSync}
|
||||
import sifive.blocks.devices.mockaon._
|
||||
import sifive.blocks.devices.gpio._
|
||||
import sifive.blocks.devices.jtag._
|
||||
@ -82,10 +82,10 @@ class E300ArtyDevKitPlatform(implicit val p: Parameters) extends Module {
|
||||
val spi_pins = sys.outer.spiParams.map { c => Wire(new SPIPins(() => PinGen(), c))}
|
||||
val i2c_pins = sys.outer.i2cParams.map { c => Wire(new I2CPins(() => PinGen()))}
|
||||
|
||||
(uart_pins zip sys_uart) map {case (p, r) => p.fromPort(r, clock = clock, reset = reset, syncStages = 0)}
|
||||
(pwm_pins zip sys_pwm) map {case (p, r) => p.fromPort(r)}
|
||||
(spi_pins zip sys_spi) map {case (p, r) => p.fromPort(r, clock = clock, reset = reset, syncStages = 0)}
|
||||
(i2c_pins zip sys_i2c) map {case (p, r) => p.fromPort(r, clock = clock, reset = reset, syncStages = 0)}
|
||||
(uart_pins zip sys_uart) map {case (p, r) => UARTPinsFromPort(p, r, clock = clock, reset = reset, syncStages = 0)}
|
||||
(pwm_pins zip sys_pwm) map {case (p, r) => PWMPinsFromPort(p, r) }
|
||||
(spi_pins zip sys_spi) map {case (p, r) => SPIPinsFromPort(p, r, clock = clock, reset = reset, syncStages = 0)}
|
||||
(i2c_pins zip sys_i2c) map {case (p, r) => I2CPinsFromPort(p, r, clock = clock, reset = reset, syncStages = 0)}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
// Default Pin connections before attaching pinmux
|
||||
@ -157,14 +157,14 @@ class E300ArtyDevKitPlatform(implicit val p: Parameters) extends Module {
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
// Result of Pin Mux
|
||||
io.pins.gpio.fromPort(sys.gpio(0))
|
||||
GPIOPinsFromPort(io.pins.gpio, sys.gpio(0))
|
||||
|
||||
// Dedicated SPI Pads
|
||||
io.pins.qspi.fromPort(sys.qspi(0), clock = sys.clock, reset = sys.reset, syncStages = 3)
|
||||
SPIPinsFromPort(io.pins.qspi, sys.qspi(0), clock = sys.clock, reset = sys.reset, syncStages = 3)
|
||||
|
||||
// JTAG Debug Interface
|
||||
val sjtag = sys.debug.systemjtag.get
|
||||
io.pins.jtag.fromPort(sjtag.jtag)
|
||||
JTAGPinsFromPort(io.pins.jtag, sjtag.jtag)
|
||||
sjtag.reset := io.jtag_reset
|
||||
sjtag.mfr_id := p(JtagDTMKey).idcodeManufId.U(11.W)
|
||||
|
||||
|
@ -13,6 +13,8 @@ import sifive.blocks.devices.gpio._
|
||||
import sifive.blocks.devices.spi._
|
||||
import sifive.blocks.devices.uart._
|
||||
|
||||
import sifive.fpgashells.devices.xilinx.xilinxvc707mig.{MemoryXilinxDDRKey,XilinxVC707MIGParams}
|
||||
|
||||
// Default FreedomUVC707Config
|
||||
class FreedomUVC707Config extends Config(
|
||||
new WithJtagDTM ++
|
||||
@ -40,7 +42,8 @@ class U500VC707DevKitConfig extends Config(
|
||||
new U500VC707DevKitPeripherals ++
|
||||
new FreedomUVC707Config().alter((site,here,up) => {
|
||||
case ErrorParams => ErrorParams(Seq(AddressSet(0x3000, 0xfff)))
|
||||
case PeripheryBusParams => up(PeripheryBusParams, site).copy(frequency = 50000000) // 50 MHz hperiphery
|
||||
case PeripheryBusKey => up(PeripheryBusKey, site).copy(frequency = 50000000) // 50 MHz hperiphery
|
||||
case MemoryXilinxDDRKey => XilinxVC707MIGParams(address = Seq(AddressSet(0x80000000L,0x40000000L-1))) //1GB
|
||||
case DTSTimebase => BigInt(1000000)
|
||||
case ExtMem => up(ExtMem).copy(size = 0x40000000L)
|
||||
case JtagDTMKey => new JtagDTMConfig (
|
||||
|
@ -10,7 +10,7 @@ import freechips.rocketchip.diplomacy._
|
||||
import sifive.blocks.devices.gpio._
|
||||
import sifive.blocks.devices.pinctrl.{BasePin}
|
||||
|
||||
import sifive.fpgashells.shell.xilinx.vc707shell.{VC707Shell}
|
||||
import sifive.fpgashells.shell.xilinx.vc707shell._
|
||||
import sifive.fpgashells.ip.xilinx.{IOBUF}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
@ -27,7 +27,10 @@ object PinGen {
|
||||
// U500VC707DevKitFPGAChip
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
class U500VC707DevKitFPGAChip(implicit override val p: Parameters) extends VC707Shell {
|
||||
class U500VC707DevKitFPGAChip(implicit override val p: Parameters)
|
||||
extends VC707Shell
|
||||
with HasPCIe
|
||||
with HasDDR3 {
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
// DUT
|
||||
@ -55,7 +58,7 @@ class U500VC707DevKitFPGAChip(implicit override val p: Parameters) extends VC707
|
||||
val gpioParams = p(PeripheryGPIOKey)
|
||||
val gpio_pins = Wire(new GPIOPins(() => PinGen(), gpioParams(0)))
|
||||
|
||||
gpio_pins.fromPort(dut.gpio(0))
|
||||
GPIOPinsFromPort(gpio_pins, dut.gpio(0))
|
||||
|
||||
gpio_pins.pins.foreach { _.i.ival := Bool(false) }
|
||||
gpio_pins.pins.zipWithIndex.foreach {
|
||||
|
Reference in New Issue
Block a user