mirror of
https://github.com/rdolbeau/NuBusFPGA.git
synced 2025-01-20 00:30:07 +00:00
comments
This commit is contained in:
parent
8ed2e15222
commit
aacb0f1caa
@ -246,7 +246,9 @@ class NuBusFPGA(SoCCore):
|
|||||||
#self.submodules.wa2d = WA2D(self.platform)
|
#self.submodules.wa2d = WA2D(self.platform)
|
||||||
#self.bus.add_slave("WA2D", self.wa2d.bus, SoCRegion(origin=0x00C00000, size=0x00400000, cached=False))
|
#self.bus.add_slave("WA2D", self.wa2d.bus, SoCRegion(origin=0x00C00000, size=0x00400000, cached=False))
|
||||||
|
|
||||||
notsimul = 1
|
# notsimul to signify we're making a real bitstream
|
||||||
|
# notsimul == False only to produce a verilog implementation to simulate the bus side of things
|
||||||
|
notsimul = True
|
||||||
if (notsimul):
|
if (notsimul):
|
||||||
avail_sdram = 0
|
avail_sdram = 0
|
||||||
self.submodules.ddrphy = s7ddrphy.A7DDRPHY(platform.request("ddram"),
|
self.submodules.ddrphy = s7ddrphy.A7DDRPHY(platform.request("ddram"),
|
||||||
@ -301,7 +303,10 @@ class NuBusFPGA(SoCCore):
|
|||||||
|
|
||||||
# Interface NuBus to wishbone
|
# Interface NuBus to wishbone
|
||||||
# we need to cross clock domains
|
# we need to cross clock domains
|
||||||
|
|
||||||
|
# Xibus is the original VErilog implementation I used
|
||||||
|
# mostly only for testing now, it doesn't have block mode so doesn't support the DMA mode of the RAM disk
|
||||||
|
# Should be set to False unless for testing (usually with notsimul=False)
|
||||||
xibus=False
|
xibus=False
|
||||||
if (xibus):
|
if (xibus):
|
||||||
wishbone_master_sys = wishbone.Interface(data_width=self.bus.data_width)
|
wishbone_master_sys = wishbone.Interface(data_width=self.bus.data_width)
|
||||||
@ -332,6 +337,7 @@ class NuBusFPGA(SoCCore):
|
|||||||
#]
|
#]
|
||||||
self.comb += irq_line.eq(fb_irq) # active low, enable if one is low
|
self.comb += irq_line.eq(fb_irq) # active low, enable if one is low
|
||||||
else:
|
else:
|
||||||
|
# details for usesampling in the NuBus python object
|
||||||
usesampling = True
|
usesampling = True
|
||||||
wishbone_master_sys = wishbone.Interface(data_width=self.bus.data_width)
|
wishbone_master_sys = wishbone.Interface(data_width=self.bus.data_width)
|
||||||
if (not usesampling): # we need an extra CDC
|
if (not usesampling): # we need an extra CDC
|
||||||
|
Loading…
x
Reference in New Issue
Block a user