mirror of
https://github.com/antonblanchard/chiselwatt.git
synced 2026-04-25 03:44:54 +00:00
This PR adds support for Polarfire FPGA from Microchip/Microsemi. The support has also been added to Fusesoc .core file to use the soon-to-be merged Libero backend. - Due to a tool incompatibility, Libero does not accept a module named "pll". Due to this, I've renamed the PLLs to Chiselwatt_pll. - Fixed formatting for chiselwatt.core file according to YAML lexer. - Added micropython and helloworls filesets to .core so it's possible to override the .hex to be used on core generation. Demo of hello_world and Micropython: https://twitter.com/carlosedp/status/1362119833324826626 Signed-off-by: Carlos de Paula <me@carlosedp.com>
37 lines
762 B
Verilog
37 lines
762 B
Verilog
module Chiselwatt_pll(
|
|
input clki,
|
|
output clko,
|
|
output lock
|
|
);
|
|
(* ICP_CURRENT="12" *) (* LPF_RESISTOR="8" *) (* MFG_ENABLE_FILTEROPAMP="1" *) (* MFG_GMCREF_SEL="2" *)
|
|
|
|
EHXPLLL #(
|
|
.PLLRST_ENA("DISABLED"),
|
|
.INTFB_WAKE("DISABLED"),
|
|
.STDBY_ENABLE("DISABLED"),
|
|
.DPHASE_SOURCE("DISABLED"),
|
|
.CLKOP_FPHASE(0),
|
|
.CLKOP_CPHASE(11),
|
|
.OUTDIVIDER_MUXA("DIVA"),
|
|
.CLKOP_ENABLE("ENABLED"),
|
|
.CLKOP_DIV(12),
|
|
.CLKFB_DIV(25),
|
|
.CLKI_DIV(6),
|
|
.FEEDBK_PATH("CLKOP")
|
|
) pll_i (
|
|
.CLKI(clki),
|
|
.CLKFB(clko),
|
|
.CLKOP(clko),
|
|
.LOCK(lock),
|
|
.RST(1'b0),
|
|
.STDBY(1'b0),
|
|
.PHASESEL0(1'b0),
|
|
.PHASESEL1(1'b0),
|
|
.PHASEDIR(1'b0),
|
|
.PHASESTEP(1'b0),
|
|
.PLLWAKESYNC(1'b0),
|
|
.ENCLKOP(1'b0)
|
|
);
|
|
|
|
endmodule
|