From f88c119461065cd6e26602cb308dc138dda7c8b2 Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Sun, 17 Oct 2021 14:22:44 +0200 Subject: mistral: Add internal oscillator support --- mistral/globals.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mistral/globals.cc') diff --git a/mistral/globals.cc b/mistral/globals.cc index 5b157a48..40d34155 100644 --- a/mistral/globals.cc +++ b/mistral/globals.cc @@ -52,4 +52,12 @@ void Arch::create_hps_mpu_general_purpose(int x, int y) } } +void Arch::create_control(int x, int y) +{ + BelId oscillator_bel = add_bel(x, y, id_cyclonev_oscillator, id_cyclonev_oscillator); + add_bel_pin(oscillator_bel, id("oscena"), PORT_IN, get_port(CycloneV::CTRL, x, y, -1, CycloneV::OSC_ENA, -1)); + add_bel_pin(oscillator_bel, id("clkout"), PORT_OUT, get_port(CycloneV::CTRL, x, y, -1, CycloneV::CLK_OUT, -1)); + add_bel_pin(oscillator_bel, id("clkout1"), PORT_OUT, get_port(CycloneV::CTRL, x, y, -1, CycloneV::CLK_OUT1, -1)); +} + NEXTPNR_NAMESPACE_END -- cgit v1.2.3