Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: whitequark/glasgow
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5db44b64c606
Choose a base ref
...
head repository: whitequark/glasgow
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: dcfaa3188179
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Dec 21, 2018

  1. gateware.boneless: nicer naming in tests. NFC.

    This mostly affects nMigen.
    whitequark committed Dec 21, 2018
    Copy the full SHA
    dcfaa31 View commit details
Showing with 6 additions and 4 deletions.
  1. +6 −4 software/glasgow/gateware/boneless.py
10 changes: 6 additions & 4 deletions software/glasgow/gateware/boneless.py
Original file line number Diff line number Diff line change
@@ -373,20 +373,22 @@ def __init__(self):

def do_finalize(self):
self.mem = Memory(width=16, depth=len(self.mem_init), init=self.mem_init)
self.specials += self.mem
self.specials.mem = self.mem

mem_rdport = self.mem.get_port(has_re=True, mode=READ_FIRST)
mem_wrport = self.mem.get_port(write_capable=True)
self.specials += [mem_rdport, mem_wrport]
self.specials.mem_r = mem_rdport
self.specials.mem_w = mem_wrport

if self.ext_init:
self.ext = Memory(width=16, depth=len(self.ext_init), init=self.ext_init)
self.specials += self.ext
self.specials.ext = self.ext

ext_port = self.ext.get_port(has_re=True, write_capable=True)
self.specials += ext_port
self.specials.ext_rw = ext_port
else:
ext_port = _StubMemoryPort("ext")
self.submodules.ext_rw = ext_port

self.submodules.dut = BonelessCore(reset_addr=8,
mem_rdport=mem_rdport,