1
0
mirror of https://github.com/antonblanchard/chiselwatt.git synced 2026-02-27 01:10:19 +00:00

Merge pull request #43 from carlosedp/polarfire-instructions

Add post-build instructions for Polarfire
This commit is contained in:
Anton Blanchard
2021-09-28 06:40:12 +10:00
committed by GitHub
3 changed files with 24 additions and 1 deletions

View File

@@ -49,7 +49,10 @@ filesets:
polarfireeval:
files:
- constraints/polarfire_eval.pdc: { file_type: PDC }
- constraints/polarfire_eval.sdc: { file_type: SDC }
- pll/pll_polarfire50MHz.v: { file_type: verilogSource }
- scripts/libero-post-instructions.txt:
{ file_type: user, copyto: post-instructions.txt }
targets:
cmod_a7-35:
@@ -99,7 +102,9 @@ targets:
polarfireeval: &polarfireeval
default_tool: libero
description: Microsemi Polarfire Evaluation Kit
filesets: [core, polarfireeval, micropython]
filesets: [core, polarfireeval, helloworld]
hooks:
post_run: [libero_post]
tools:
libero: &liberoMPF300
family: PolarFire
@@ -119,3 +124,7 @@ parameters:
datatype: bool
description: External reset button polarity
paramtype: generic
scripts:
libero_post:
cmd: ["python3", "-c", "print(open('post-instructions.txt','r').read())"]

View File

@@ -0,0 +1 @@
create_clock -name {input} -period 20 -waveform {0 1.11111 } [ get_ports { clock } ]

View File

@@ -0,0 +1,13 @@
=========================
Libero build instructions
=========================
After "Generate FPGA Array Data" task, open "Configure Design Initialization Data and Memories" tool.
Click the "Fabric RAMs" tab and select "Initialize all clients from SPI-Flash" in the dropdown named "Initialize all clients from".
Click "Apply".
Select "Design Initialization" tab and set the dropdown "SPI Clock divider value" to "6 (13.33)".
Click Apply