1- From e9601e43c6a07014a29f90d9f747f4abe0f1fb9b Mon Sep 17 00:00:00 2001
2- From: Kamil Rakoczy <
[email protected] >
3- Date: Thu, 23 Dec 2021 12:57:35 +0100
4- Subject: [PATCH 2/3] add synth surelog target
5-
6- Signed-off-by: Kamil Rakoczy <
[email protected] >
7- ---
8- examples/fpga/artya7/top_artya7.core | 25 ++++++++++++++++++++++---
9- 1 file changed, 22 insertions(+), 3 deletions(-)
10-
11- diff --git a/examples/fpga/artya7/top_artya7.core b/examples/fpga/artya7/top_artya7.core
12- index 4493a8ae..9a5e538b 100644
13- --- a/examples/fpga/artya7/top_artya7.core
14- +++ b/examples/fpga/artya7/top_artya7.core
15- @@ -2,7 +2,7 @@ CAPI=2:
16- # Copyright lowRISC contributors.
17- # Licensed under the Apache License, Version 2.0, see LICENSE for details.
18- # SPDX-License-Identifier: Apache-2.0
19- - name: "lowrisc:ibex:top_artya7:0.1"
20- + name: "lowrisc:ibex:top_artya7_surelog:0.1"
21- description: "Ibex example toplevel for Arty A7 boards (both, -35 and -100)"
22- filesets:
23- files_rtl_artya7:
24- @@ -17,6 +17,10 @@ filesets:
25- files:
26- - data/pins_artya7.xdc
27- file_type: xdc
28- + files_constraints_sdc:
29- + files:
30- + - data/pins_artya7.sdc
31- + file_type: SDC
32-
33- files_tcl:
34- files:
35- @@ -41,7 +45,7 @@ parameters:
36- datatype: str
37- paramtype: vlogdefine
38- description: Primitives implementation to use, e.g. "prim_pkg::ImplGeneric".
39- -
40- +
41- FPGAPowerAnalysis:
42- datatype: int
43- paramtype: vlogparam
44- @@ -53,7 +57,7 @@ targets:
45- filesets:
46- - files_rtl_artya7
47- - files_constraints
48- - - files_tcl
49- + - tool_symbiflow ? (files_constraints_sdc)
50- toplevel: top_artya7
51- parameters:
52- - SRAMInitFile
53- @@ -62,3 +66,18 @@ targets:
54- tools:
55- vivado:
56- part: "xc7a100tcsg324-1" # Default to Arty A7-100
57- + synth: "yosys"
58- + yosys_synth_options: ['-iopad', '-family xc7', '-run :check', "frontend=surelog"]
59- + yosys_read_options: ['-noassert', '-debug']
60- + surelog_options: ['--disable-feature=parametersubstitution', '-DSYNTHESIS']
61- + yosys:
62- + arch: "xilinx"
63- + yosys_synth_options: ['-iopad', '-family xc7', '-run :check', "frontend=surelog"]
64- + yosys_read_options: ['-noassert']
65- + surelog_options: ['--disable-feature=parametersubstitution', '-DSYNTHESIS']
66- + symbiflow:
67- + package: "csg324-1"
68- + part: "xc7a35t"
69- + pnr: "vtr"
70- + vendor: "xilinx"
71- + surelog_options: ['--disable-feature=parametersubstitution', '-DSYNTHESIS']
72- - -
73- 2.33.1
74-
75- From 7b0e214fcb86aac8331da89f378ba0dbccc4f0d3 Mon Sep 17 00:00:00 2001
76- From: Kamil Rakoczy <
[email protected] >
77- Date: Thu, 23 Dec 2021 12:58:11 +0100
78- Subject: [PATCH 3/3] ibex: change ram_2p to ram_1p
79-
80- ---
81- examples/fpga/artya7/rtl/top_artya7.sv | 46 +++++++++++++++-----------
82- shared/fpga_xilinx.core | 4 +--
83- 2 files changed, 28 insertions(+), 22 deletions(-)
84-
851diff --git a/examples/fpga/artya7/rtl/top_artya7.sv b/examples/fpga/artya7/rtl/top_artya7.sv
86- index 5efbf270..e91db9fd 100644
2+ index b15ee978..7ed562bb 100644
873--- a/examples/fpga/artya7/rtl/top_artya7.sv
884+++ b/examples/fpga/artya7/rtl/top_artya7.sv
89- @@ -8,7 +8,7 @@ module top_artya7 (
90- output [3:0] LED
91- );
92-
93- - parameter int MEM_SIZE = 256 * 1024; // 256 kB
94- + parameter int MEM_SIZE = 32 * 1024; // 32 kB
95- parameter logic [31:0] MEM_START = 32'h00000000;
96- parameter logic [31:0] MEM_MASK = MEM_SIZE-1;
97- parameter SRAMInitFile = "";
98- @@ -84,28 +84,34 @@ module top_artya7 (
5+ @@ -87,28 +87,34 @@ module top_artya7 (
996 );
1007
1018 // SRAM block for instruction and data storage
@@ -148,7 +55,59 @@ index 5efbf270..e91db9fd 100644
14855+ .rdata_o ( instr_rdata )
14956 );
15057
58+ assign instr_gnt = instr_req;
59+ diff --git a/examples/fpga/artya7/top_artya7.core b/examples/fpga/artya7/top_artya7.core
60+ index 4493a8ae..bbe9c6c8 100644
61+ --- a/examples/fpga/artya7/top_artya7.core
62+ +++ b/examples/fpga/artya7/top_artya7.core
63+ @@ -2,7 +2,7 @@ CAPI=2:
64+ # Copyright lowRISC contributors.
65+ # Licensed under the Apache License, Version 2.0, see LICENSE for details.
66+ # SPDX-License-Identifier: Apache-2.0
67+ - name: "lowrisc:ibex:top_artya7:0.1"
68+ + name: "lowrisc:ibex:top_artya7_surelog:0.1"
69+ description: "Ibex example toplevel for Arty A7 boards (both, -35 and -100)"
70+ filesets:
71+ files_rtl_artya7:
72+ @@ -17,6 +17,10 @@ filesets:
73+ files:
74+ - data/pins_artya7.xdc
75+ file_type: xdc
76+ + files_constraints_sdc:
77+ + files:
78+ + - data/pins_artya7.sdc
79+ + file_type: SDC
15180
81+ files_tcl:
82+ files:
83+ @@ -53,7 +57,7 @@ targets:
84+ filesets:
85+ - files_rtl_artya7
86+ - files_constraints
87+ - - files_tcl
88+ + - tool_symbiflow ? (files_constraints_sdc)
89+ toplevel: top_artya7
90+ parameters:
91+ - SRAMInitFile
92+ @@ -62,3 +66,18 @@ targets:
93+ tools:
94+ vivado:
95+ part: "xc7a100tcsg324-1" # Default to Arty A7-100
96+ + synth: "yosys"
97+ + yosys_synth_options: ['-iopad', '-family xc7', '-run :check', "frontend=surelog"]
98+ + yosys_read_options: ['-debug']
99+ + surelog_options: ['--disable-feature=parametersubstitution', '-DSYNTHESIS']
100+ + yosys:
101+ + arch: "xilinx"
102+ + yosys_synth_options: ['-iopad', '-family xc7', '-run :check', "frontend=surelog"]
103+ + yosys_read_options: ['-debug']
104+ + surelog_options: ['--disable-feature=parametersubstitution', '-DSYNTHESIS']
105+ + symbiflow:
106+ + package: "csg324-1"
107+ + part: "xc7a35t"
108+ + pnr: "vtr"
109+ + vendor: "xilinx"
110+ + surelog_options: ['--disable-feature=parametersubstitution', '-DSYNTHESIS']
152111diff --git a/shared/fpga_xilinx.core b/shared/fpga_xilinx.core
153112index 242f1f2d..26b05f1f 100644
154113--- a/shared/fpga_xilinx.core
@@ -166,6 +125,3 @@ index 242f1f2d..26b05f1f 100644
166125 file_type: systemVerilogSource
167126
168127 targets:
169- - -
170- 2.33.1
171-
0 commit comments