build.{res,plat}: use xdr=0 as default, not xdr=1.

The previous behavior was semantically incorrect.
This commit is contained in:
whitequark 2019-06-03 03:32:30 +00:00
parent cd6488c782
commit 9ba2efd86b
4 changed files with 14 additions and 8 deletions

View file

@ -215,8 +215,8 @@ class ConstraintManagerTestCase(FHDLTestCase):
def test_wrong_request_with_wrong_xdr(self):
with self.assertRaises(ValueError,
msg="Data rate of (pins o A0) must be a positive integer, not 0"):
user_led = self.cm.request("user_led", 0, xdr=0)
msg="Data rate of (pins o A0) must be a non-negative integer, not -1"):
user_led = self.cm.request("user_led", 0, xdr=-1)
def test_wrong_request_with_xdr_dict(self):
with self.assertRaises(TypeError,