Example #1
0
 def _initSimAgent(self, sim: HdlSimulator):
     self._ag = ClockAgent(sim, self, period=int(freq_to_period(self.FREQ)))
Example #2
0
 def _initSimAgent(self, sim: HdlSimulator):
     clk = self._getAssociatedClk()
     self._ag = PullUpAgent(sim,
                            self,
                            initDelay=int(0.6 * freq_to_period(clk.FREQ)))
Example #3
0
 def setUpClass(cls):
     cls.u = u = Hd44780Driver()
     u.LCD_FREQ = int(1e6)
     u.FREQ = u.LCD_FREQ * 4
     cls.CLK = int(freq_to_period(u.LCD_FREQ))
     cls.compileSim(u)