Skip to content

Commit 9faa805

Browse files
committed
alinx_ax7010: Review/Cleanup.
1 parent 3aa1042 commit 9faa805

File tree

2 files changed

+11
-16
lines changed

2 files changed

+11
-16
lines changed

litex_boards/platforms/alinx_ax7010.py

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,25 @@
77
from litex.build.generic_platform import *
88
from litex.build.xilinx import XilinxPlatform, VivadoProgrammer
99

10-
#DDR3 SDRAM, QSPI, UART, IIC,
1110
# IOs ----------------------------------------------------------------------------------------------
1211

1312
_io = [
1413
# Clk / Rst
1514
("clk100", 0, Pins("U18"), IOStandard("LVCMOS33")),
16-
#("sys_clk", 0, Pins("V15"), IOStandard("LVCMOS33")),
17-
#("cpu_reset", 0, Pins("U18"), IOStandard("LVCMOS33")),
1815

19-
# Leds Done
16+
# Leds
2017
("user_led", 0, Pins("M14"), IOStandard("LVCMOS33")),
2118
("user_led", 1, Pins("M15"), IOStandard("LVCMOS33")),
2219
("user_led", 2, Pins("K16"), IOStandard("LVCMOS33")),
2320
("user_led", 3, Pins("J18"), IOStandard("LVCMOS33")),
2421

25-
# Buttons Done
22+
# Buttons
2623
("user_btn", 0, Pins("N15"), IOStandard("LVCMOS33")),
2724
("user_btn", 1, Pins("N16"), IOStandard("LVCMOS33")),
2825
("user_btn", 2, Pins("R17"), IOStandard("LVCMOS33")),
2926
("user_btn", 3, Pins("T17"), IOStandard("LVCMOS33")),
3027

31-
# Serial Done
28+
# Serial
3229
("serial", 0,
3330
Subsignal("tx", Pins("W19"), IOStandard("LVCMOS33")),
3431
Subsignal("rx", Pins("W18"), IOStandard("LVCMOS33")),
@@ -65,10 +62,10 @@
6562
# Connectors ---------------------------------------------------------------------------------------
6663

6764
_connectors = [
68-
("pmodb", "B12 B12 C12"),
65+
("pmodb", "B12 B12 C12"),
6966
("pmodhdmi", "N18 P19 V20 W20 T20 U20 N20 P20 R18 R16 Y18 Y19 V16"),
70-
("pmodj10", "W19 W18 R14 P14 Y17 Y16 W15 V15 Y14 W14 P18 N17 U15 U14 P16 P15 U17 T16 V18 V17 T15 T14 V13 U13 W13 V12 U12 T12 T10 T11 A20 B19 B20 C20"),
71-
("pmodj11", "F17 F16 F20 F19 G20 G19 H18 J18 L20 L19 M20 M19 K18 K17 J19 K19 H20 J20 L17 L16 M18 M17 D20 D19 E19 E18 G18 G17 H17 H16 G15 H15 J14 K14"),
67+
("pmodj10", "W19 W18 R14 P14 Y17 Y16 W15 V15 Y14 W14 P18 N17 U15 U14 P16 P15 U17 T16 V18 V17 T15 T14 V13 U13 W13 V12 U12 T12 T10 T11 A20 B19 B20 C20"),
68+
("pmodj11", "F17 F16 F20 F19 G20 G19 H18 J18 L20 L19 M20 M19 K18 K17 J19 K19 H20 J20 L17 L16 M18 M17 D20 D19 E19 E18 G18 G17 H17 H16 G15 H15 J14 K14"),
7269
]
7370

7471
# PMODS --------------------------------------------------------------------------------------------
@@ -83,8 +80,6 @@
8380
),
8481
]
8582

86-
87-
8883
# Platform -----------------------------------------------------------------------------------------
8984

9085
class Platform(XilinxPlatform):

litex_boards/targets/alinx_ax7010.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
from migen import *
1313

14-
from litex_boards.platforms import zynq_xc7z010
14+
from litex_boards.platforms import ax7010
1515
from litex.build.xilinx.vivado import vivado_build_args, vivado_build_argdict
1616

1717
from litex.soc.interconnect import axi
@@ -30,7 +30,7 @@ def __init__(self, platform, sys_clk_freq):
3030
self.clock_domains.cd_sys = ClockDomain()
3131

3232
self.submodules.pll = pll = S7PLL(speedgrade=-1)
33-
self.comb += pll.reset.eq(self.rst)# | platform.request("cpu_reset"))
33+
self.comb += pll.reset.eq(self.rst)
3434
pll.register_clkin(platform.request("clk100"), 100e6)
3535
pll.create_clkout(self.cd_sys, sys_clk_freq)
3636
platform.add_false_path_constraints(self.cd_sys.clk, pll.clkin) # Ignore sys_clk to pll.clkin path created by SoC's rst.
@@ -39,14 +39,14 @@ def __init__(self, platform, sys_clk_freq):
3939

4040
class BaseSoC(SoCCore):
4141
def __init__(self, sys_clk_freq=int(100e6), with_led_chaser=True, **kwargs):
42-
platform = zynq_xc7z010.Platform()
42+
platform = ax7010.Platform()
4343

4444
#if kwargs["uart_name"] == "serial": kwargs["uart_name"] = "usb_uart" # Use USB-UART Pmod on JB.
4545
kwargs["uart_name"] = "serial"
4646

4747
# SoCCore ----------------------------------------------------------------------------------
4848
SoCCore.__init__(self, platform, sys_clk_freq,
49-
ident = "LiteX SoC on alinx ax7010",
49+
ident = "LiteX SoC on Alinx AX7010",
5050
**kwargs)
5151

5252
# CRG --------------------------------------------------------------------------------------
@@ -79,7 +79,7 @@ def main():
7979

8080
if args.load:
8181
prog = soc.platform.create_programmer()
82-
prog.load_bitstream(os.path.join(builder.gateware_dir, soc.build_name + ".bit"), device=1)
82+
prog.load_bitstream(builder.get_bitstream_filename(mode="sram"), device=1)
8383

8484
if __name__ == "__main__":
8585
main()

0 commit comments

Comments
 (0)