freedom: bump submodules to their respective masters
This commit is contained in:
parent
22ee433699
commit
4eaac79ec2
23
common.mk
23
common.mk
@ -72,11 +72,26 @@ endif
|
|||||||
.PHONY: romgen
|
.PHONY: romgen
|
||||||
romgen: $(romgen)
|
romgen: $(romgen)
|
||||||
|
|
||||||
|
f := $(BUILD_DIR)/$(CONFIG_PROJECT).$(CONFIG).vsrcs.F
|
||||||
|
$(f):
|
||||||
|
echo $(VSRCS) > $@
|
||||||
|
|
||||||
|
bit := $(BUILD_DIR)/obj/$(MODEL).bit
|
||||||
|
$(bit): $(romgen) $(f)
|
||||||
|
cd $(BUILD_DIR); vivado \
|
||||||
|
-nojournal -mode batch \
|
||||||
|
-source $(fpga_common_script_dir)/vivado.tcl \
|
||||||
|
-tclargs \
|
||||||
|
-top-module "$(MODEL)" \
|
||||||
|
-F "$(f)" \
|
||||||
|
-ip-vivado-tcls "$(shell find '$(BUILD_DIR)' -name '*.vivado.tcl')" \
|
||||||
|
-board "$(BOARD)"
|
||||||
|
|
||||||
|
|
||||||
# Build .mcs
|
# Build .mcs
|
||||||
mcs := $(BUILD_DIR)/$(CONFIG_PROJECT).$(CONFIG).mcs
|
mcs := $(BUILD_DIR)/obj/$(MODEL).mcs
|
||||||
$(mcs): $(romgen)
|
$(mcs): $(bit)
|
||||||
VSRCS="$(VSRCS)" $(MAKE) -C $(FPGA_DIR) mcs
|
cd $(BUILD_DIR); vivado -nojournal -mode batch -source $(fpga_common_script_dir)/write_cfgmem.tcl -tclargs $(BOARD) $@ $<
|
||||||
cp $(BUILD_DIR)/$(MODEL)/obj/system.mcs $@
|
|
||||||
|
|
||||||
.PHONY: mcs
|
.PHONY: mcs
|
||||||
mcs: $(mcs)
|
mcs: $(mcs)
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 2389e6e95717caca782e7444422da16fef687188
|
Subproject commit ba7beb676d55b73334bd4a85623e56c713a83773
|
@ -1 +1 @@
|
|||||||
Subproject commit 82df766f4a5b1efb24b8659eb11c8b12c410a291
|
Subproject commit 7e75d63ba6b4c1b50aaaf920e1c693ef6acf51d7
|
@ -1 +1 @@
|
|||||||
Subproject commit f266b55da92e42350be5704b4fe7d2a934e986ae
|
Subproject commit d1d2f47f609638c43546d4a9d0a4018c73dee4bb
|
@ -8,9 +8,9 @@ import freechips.rocketchip.coreplex._
|
|||||||
import freechips.rocketchip.devices.debug._
|
import freechips.rocketchip.devices.debug._
|
||||||
import freechips.rocketchip.devices.tilelink._
|
import freechips.rocketchip.devices.tilelink._
|
||||||
import freechips.rocketchip.diplomacy._
|
import freechips.rocketchip.diplomacy._
|
||||||
|
import freechips.rocketchip.util.ResetCatchAndSync
|
||||||
import freechips.rocketchip.system._
|
import freechips.rocketchip.system._
|
||||||
|
|
||||||
import sifive.blocks.util.{ResetCatchAndSync}
|
|
||||||
import sifive.blocks.devices.mockaon._
|
import sifive.blocks.devices.mockaon._
|
||||||
import sifive.blocks.devices.gpio._
|
import sifive.blocks.devices.gpio._
|
||||||
import sifive.blocks.devices.jtag._
|
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 spi_pins = sys.outer.spiParams.map { c => Wire(new SPIPins(() => PinGen(), c))}
|
||||||
val i2c_pins = sys.outer.i2cParams.map { c => Wire(new I2CPins(() => PinGen()))}
|
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)}
|
(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) => p.fromPort(r)}
|
(pwm_pins zip sys_pwm) map {case (p, r) => PWMPinsFromPort(p, r) }
|
||||||
(spi_pins zip sys_spi) map {case (p, r) => p.fromPort(r, clock = clock, reset = reset, syncStages = 0)}
|
(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) => p.fromPort(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
|
// Default Pin connections before attaching pinmux
|
||||||
@ -157,14 +157,14 @@ class E300ArtyDevKitPlatform(implicit val p: Parameters) extends Module {
|
|||||||
//-----------------------------------------------------------------------
|
//-----------------------------------------------------------------------
|
||||||
|
|
||||||
// Result of Pin Mux
|
// Result of Pin Mux
|
||||||
io.pins.gpio.fromPort(sys.gpio(0))
|
GPIOPinsFromPort(io.pins.gpio, sys.gpio(0))
|
||||||
|
|
||||||
// Dedicated SPI Pads
|
// 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
|
// JTAG Debug Interface
|
||||||
val sjtag = sys.debug.systemjtag.get
|
val sjtag = sys.debug.systemjtag.get
|
||||||
io.pins.jtag.fromPort(sjtag.jtag)
|
JTAGPinsFromPort(io.pins.jtag, sjtag.jtag)
|
||||||
sjtag.reset := io.jtag_reset
|
sjtag.reset := io.jtag_reset
|
||||||
sjtag.mfr_id := p(JtagDTMKey).idcodeManufId.U(11.W)
|
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.spi._
|
||||||
import sifive.blocks.devices.uart._
|
import sifive.blocks.devices.uart._
|
||||||
|
|
||||||
|
import sifive.fpgashells.devices.xilinx.xilinxvc707mig.{MemoryXilinxDDRKey,XilinxVC707MIGParams}
|
||||||
|
|
||||||
// Default FreedomUVC707Config
|
// Default FreedomUVC707Config
|
||||||
class FreedomUVC707Config extends Config(
|
class FreedomUVC707Config extends Config(
|
||||||
new WithJtagDTM ++
|
new WithJtagDTM ++
|
||||||
@ -40,7 +42,8 @@ class U500VC707DevKitConfig extends Config(
|
|||||||
new U500VC707DevKitPeripherals ++
|
new U500VC707DevKitPeripherals ++
|
||||||
new FreedomUVC707Config().alter((site,here,up) => {
|
new FreedomUVC707Config().alter((site,here,up) => {
|
||||||
case ErrorParams => ErrorParams(Seq(AddressSet(0x3000, 0xfff)))
|
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 DTSTimebase => BigInt(1000000)
|
||||||
case ExtMem => up(ExtMem).copy(size = 0x40000000L)
|
case ExtMem => up(ExtMem).copy(size = 0x40000000L)
|
||||||
case JtagDTMKey => new JtagDTMConfig (
|
case JtagDTMKey => new JtagDTMConfig (
|
||||||
|
@ -10,7 +10,7 @@ import freechips.rocketchip.diplomacy._
|
|||||||
import sifive.blocks.devices.gpio._
|
import sifive.blocks.devices.gpio._
|
||||||
import sifive.blocks.devices.pinctrl.{BasePin}
|
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}
|
import sifive.fpgashells.ip.xilinx.{IOBUF}
|
||||||
|
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
@ -27,7 +27,10 @@ object PinGen {
|
|||||||
// U500VC707DevKitFPGAChip
|
// U500VC707DevKitFPGAChip
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
|
|
||||||
class U500VC707DevKitFPGAChip(implicit override val p: Parameters) extends VC707Shell {
|
class U500VC707DevKitFPGAChip(implicit override val p: Parameters)
|
||||||
|
extends VC707Shell
|
||||||
|
with HasPCIe
|
||||||
|
with HasDDR3 {
|
||||||
|
|
||||||
//-----------------------------------------------------------------------
|
//-----------------------------------------------------------------------
|
||||||
// DUT
|
// DUT
|
||||||
@ -55,7 +58,7 @@ class U500VC707DevKitFPGAChip(implicit override val p: Parameters) extends VC707
|
|||||||
val gpioParams = p(PeripheryGPIOKey)
|
val gpioParams = p(PeripheryGPIOKey)
|
||||||
val gpio_pins = Wire(new GPIOPins(() => PinGen(), gpioParams(0)))
|
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.foreach { _.i.ival := Bool(false) }
|
||||||
gpio_pins.pins.zipWithIndex.foreach {
|
gpio_pins.pins.zipWithIndex.foreach {
|
||||||
|
Loading…
Reference in New Issue
Block a user