From cb4be529226d3d30aba71a854ea005066f3ce871 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 17 Mar 2015 19:08:31 +0100 Subject: [PATCH] targets: add Lattice ECP3 versa --- targets/versa.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 targets/versa.py diff --git a/targets/versa.py b/targets/versa.py new file mode 100644 index 00000000..c0fe4714 --- /dev/null +++ b/targets/versa.py @@ -0,0 +1,17 @@ +from migen.fhdl.std import * +from migen.bus import wishbone +from migen.genlib.io import CRG + +from misoclib.soc import SoC + +class BaseSoC(SoC): + default_platform = "versa" + def __init__(self, platform, **kwargs): + SoC.__init__(self, platform, + clk_freq=100*1000000, + with_rom=True, + **kwargs) + self.submodules.crg = CRG(platform.request("clk100"), ~platform.request("rst_n")) + self.comb += platform.request("user_led", 0).eq(ResetSignal()) + +default_subtarget = BaseSoC -- 2.30.2