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: efb6bc65fc18
Choose a base ref
...
head repository: whitequark/glasgow
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ec20ec9a3acc
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Dec 7, 2018

  1. Copy the full SHA
    ec20ec9 View commit details
Showing with 26 additions and 0 deletions.
  1. +26 −0 software/glasgow/gateware/boneless.py
26 changes: 26 additions & 0 deletions software/glasgow/gateware/boneless.py
Original file line number Diff line number Diff line change
@@ -619,6 +619,32 @@ def test_JNC(self, tb):
yield from self.assertMemory(tb, 6, 0x0000)
yield from self.assertMemory(tb, 7, 0x0001)

@simulation_test(regs=[0x1234, 0x1235],
code=[CMP (R0, R0), JUGE(1), MOVL(R2, 1), MOVL(R3, 1),
CMP (R1, R0), JUGE(1), MOVL(R4, 1), MOVL(R5, 1),
CMP (R0, R1), JUGE(1), MOVL(R6, 1), MOVL(R7, 1)])
def test_JUGE(self, tb):
yield from self.run_core(tb)
yield from self.assertMemory(tb, 2, 0x0000)
yield from self.assertMemory(tb, 3, 0x0001)
yield from self.assertMemory(tb, 4, 0x0000)
yield from self.assertMemory(tb, 5, 0x0001)
yield from self.assertMemory(tb, 6, 0x0001)
yield from self.assertMemory(tb, 7, 0x0001)

@simulation_test(regs=[0x1234, 0x1235],
code=[CMP (R0, R0), JULT(1), MOVL(R2, 1), MOVL(R3, 1),
CMP (R1, R0), JULT(1), MOVL(R4, 1), MOVL(R5, 1),
CMP (R0, R1), JULT(1), MOVL(R6, 1), MOVL(R7, 1)])
def test_JULT(self, tb):
yield from self.run_core(tb)
yield from self.assertMemory(tb, 2, 0x0001)
yield from self.assertMemory(tb, 3, 0x0001)
yield from self.assertMemory(tb, 4, 0x0001)
yield from self.assertMemory(tb, 5, 0x0001)
yield from self.assertMemory(tb, 6, 0x0000)
yield from self.assertMemory(tb, 7, 0x0001)

@simulation_test(regs=[0x1234, 0x1235],
code=[CMP (R0, R0), JUGT(1), MOVL(R2, 1), MOVL(R3, 1),
CMP (R1, R0), JUGT(1), MOVL(R4, 1), MOVL(R5, 1),