Example #1
0
 def test_read_clk_with_timespec(self):
     loc = os.path.join(os.path.dirname(__file__),
                        os.path.pardir,
                        "fake",
                        "lx9.ucf")
     clock_rate = utils.read_clock_rate(loc, debug = self.dbg)
     self.assertEqual(int(clock_rate), 100000000)
Example #2
0
 def test_read_clk_with_period(self):
     loc = os.path.join(os.path.dirname(__file__),
                        os.path.pardir,
                        "fake",
                        "test_board",
                        "board",
                        "test.ucf")
     clock_rate = utils.read_clock_rate(loc, debug = self.dbg)
     self.assertEqual(int(clock_rate), 50000000)
 def test_read_clk_with_timespec(self):
     loc = os.path.join(os.path.dirname(__file__), os.path.pardir, "fake",
                        "lx9.ucf")
     clock_rate = utils.read_clock_rate(loc, debug=self.dbg)
     self.assertEqual(int(clock_rate), 100000000)
 def test_read_clk_with_period(self):
     loc = os.path.join(os.path.dirname(__file__), os.path.pardir, "fake",
                        "test_board", "board", "test.ucf")
     clock_rate = utils.read_clock_rate(loc, debug=self.dbg)
     self.assertEqual(int(clock_rate), 50000000)