[myhdl-list] adding files to top-level with rhea
Brought to you by:
jandecaluwe
From: Edward V. <dev...@sb...> - 2015-12-21 16:05:19
|
Modifications to blink.py on RPi2B used to create catboard.bin. --- blink.py 2015-12-14 11:03:16.519999868 +0000 +++ blink.py.tmp 2015-12-14 11:02:09.009999894 +0000 @@ -9,12 +9,12 @@ nled = len(led) maxcnt = int(clock.frequency) - cnt = Signal(intbv(0,min=0,max=maxcnt)) + cnt = Signal(intbv(0,min=0,max=12000000)) toggle = Signal(bool(0)) @always_seq(clock.posedge, reset=reset) def rtl(): - if cnt == maxcnt-1: + if cnt == 12000000: cnt.next = 0 toggle.next = not toggle else: Modifications to blink.py on Ubuntu used to create xula2.bit. --- blink.py 2015-12-21 05:47:24.931919453 -0700 +++ blink.py.tmp 2015-12-21 05:47:09.387919627 -0700 @@ -9,12 +9,12 @@ nled = len(led) maxcnt = int(clock.frequency) - cnt = Signal(intbv(0,min=0,max=maxcnt)) + cnt = Signal(intbv(0,min=0,max=1440000)) toggle = Signal(bool(0)) @always_seq(clock.posedge, reset=reset) def rtl(): - if cnt == maxcnt-1: + if cnt == 1440000: cnt.next = 0 toggle.next = not toggle else: Now, 2 leds on XulA2-LX9 with StickIt-MB and RPi2B appear to blink at the same rate as leds on CAT-Board with RPi2B. |