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

Commits on Feb 7, 2020

  1. Verified

    This commit was signed with the committer’s verified signature.
    thockin Tim Hockin
    Copy the full SHA
    3b67271 View commit details
Showing with 3 additions and 3 deletions.
  1. +3 −3 nmigen/test/test_build_res.py
6 changes: 3 additions & 3 deletions nmigen/test/test_build_res.py
Original file line number Diff line number Diff line change
@@ -196,15 +196,15 @@ def test_request_clock(self):
clk50 = self.cm.request("clk50", 0, dir="i")
clk100_port_p, clk100_port_n, clk50_port = self.cm.iter_ports()
self.assertEqual(list(self.cm.iter_clock_constraints()), [
(clk100.i, 100e6),
(clk50.i, 50e6)
(clk100.i, clk100_port_p, 100e6),
(clk50.i, clk50_port, 50e6)
])

def test_add_clock(self):
i2c = self.cm.request("i2c")
self.cm.add_clock_constraint(i2c.scl.o, 100e3)
self.assertEqual(list(self.cm.iter_clock_constraints()), [
(i2c.scl.o, 100e3)
(i2c.scl.o, None, 100e3)
])

def test_wrong_resources(self):