siliconcompiler 0.27.0__py3-none-any.whl → 0.28.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- siliconcompiler/_metadata.py +1 -1
- siliconcompiler/core.py +9 -1
- siliconcompiler/data/RobotoMono/__init__.py +0 -0
- siliconcompiler/data/__init__.py +0 -0
- siliconcompiler/flows/generate_openroad_rcx.py +1 -1
- siliconcompiler/remote/server_schema/__init__.py +0 -0
- siliconcompiler/remote/server_schema/requests/__init__.py +0 -0
- siliconcompiler/remote/server_schema/responses/__init__.py +0 -0
- siliconcompiler/scheduler/__init__.py +6 -4
- siliconcompiler/scheduler/validation/__init__.py +0 -0
- siliconcompiler/schema/schema_cfg.py +351 -281
- siliconcompiler/schema/schema_obj.py +5 -3
- siliconcompiler/sphinx_ext/dynamicgen.py +35 -15
- siliconcompiler/sphinx_ext/schemagen.py +4 -1
- siliconcompiler/templates/__init__.py +0 -0
- siliconcompiler/templates/email/__init__.py +0 -0
- siliconcompiler/templates/issue/__init__.py +0 -0
- siliconcompiler/templates/report/__init__.py +0 -0
- siliconcompiler/templates/slurm/__init__.py +0 -0
- siliconcompiler/templates/tcl/__init__.py +0 -0
- siliconcompiler/tools/_common/sdc/__init__.py +0 -0
- siliconcompiler/tools/_common/tcl/__init__.py +0 -0
- siliconcompiler/tools/_common/tcl/sc_pin_constraints.tcl +1 -2
- siliconcompiler/tools/bambu/__init__.py +0 -0
- siliconcompiler/tools/bluespec/__init__.py +0 -0
- siliconcompiler/tools/builtin/__init__.py +0 -0
- siliconcompiler/tools/builtin/concatenate.py +16 -0
- siliconcompiler/tools/chisel/__init__.py +0 -0
- siliconcompiler/tools/execute/__init__.py +0 -0
- siliconcompiler/tools/genfasm/__init__.py +0 -0
- siliconcompiler/tools/ghdl/__init__.py +0 -0
- siliconcompiler/tools/icarus/__init__.py +0 -0
- siliconcompiler/tools/icepack/__init__.py +0 -0
- siliconcompiler/tools/klayout/__init__.py +0 -0
- siliconcompiler/tools/klayout/klayout.py +1 -0
- siliconcompiler/tools/magic/__init__.py +0 -0
- siliconcompiler/tools/magic/sc_drc.tcl +5 -5
- siliconcompiler/tools/magic/sc_extspice.tcl +3 -3
- siliconcompiler/tools/magic/sc_magic.tcl +2 -2
- siliconcompiler/tools/montage/__init__.py +0 -0
- siliconcompiler/tools/netgen/__init__.py +0 -0
- siliconcompiler/tools/netgen/sc_lvs.tcl +3 -3
- siliconcompiler/tools/nextpnr/__init__.py +0 -0
- siliconcompiler/tools/openfpgaloader/__init__.py +0 -0
- siliconcompiler/tools/openroad/scripts/__init__.py +0 -0
- siliconcompiler/tools/openroad/scripts/sc_apr.tcl +36 -34
- siliconcompiler/tools/openroad/scripts/sc_cts.tcl +0 -1
- siliconcompiler/tools/openroad/scripts/sc_dfm.tcl +4 -2
- siliconcompiler/tools/openroad/scripts/sc_export.tcl +4 -2
- siliconcompiler/tools/openroad/scripts/sc_floorplan.tcl +29 -33
- siliconcompiler/tools/openroad/scripts/sc_metrics.tcl +4 -2
- siliconcompiler/tools/openroad/scripts/sc_physyn.tcl +0 -1
- siliconcompiler/tools/openroad/scripts/sc_procs.tcl +12 -6
- siliconcompiler/tools/openroad/scripts/sc_rcx.tcl +9 -9
- siliconcompiler/tools/openroad/scripts/sc_route.tcl +8 -4
- siliconcompiler/tools/openroad/scripts/sc_screenshot.tcl +5 -3
- siliconcompiler/tools/openroad/scripts/sc_write_images.tcl +27 -25
- siliconcompiler/tools/openroad/templates/__init__.py +0 -0
- siliconcompiler/tools/opensta/scripts/__init__.py +0 -0
- siliconcompiler/tools/opensta/scripts/sc_procs.tcl +0 -1
- siliconcompiler/tools/surelog/templates/__init__.py +0 -0
- siliconcompiler/tools/sv2v/__init__.py +0 -0
- siliconcompiler/tools/template/__init__.py +0 -0
- siliconcompiler/tools/verilator/__init__.py +0 -0
- siliconcompiler/tools/verilator/compile.py +1 -4
- siliconcompiler/tools/verilator/verilator.py +1 -2
- siliconcompiler/tools/vivado/scripts/__init__.py +0 -0
- siliconcompiler/tools/vivado/scripts/sc_run.tcl +7 -8
- siliconcompiler/tools/vivado/vivado.py +1 -1
- siliconcompiler/tools/vpr/__init__.py +0 -0
- siliconcompiler/tools/vpr/place.py +20 -6
- siliconcompiler/tools/vpr/vpr.py +1 -1
- siliconcompiler/tools/xyce/__init__.py +0 -0
- siliconcompiler/tools/yosys/__init__.py +0 -0
- siliconcompiler/tools/yosys/sc_lec.tcl +7 -7
- siliconcompiler/tools/yosys/sc_syn.tcl +9 -9
- siliconcompiler/tools/yosys/syn_asic.tcl +21 -13
- siliconcompiler/tools/yosys/syn_fpga.tcl +20 -17
- siliconcompiler/tools/yosys/techmaps/__init__.py +0 -0
- siliconcompiler/tools/yosys/templates/__init__.py +0 -0
- siliconcompiler/use.py +2 -1
- {siliconcompiler-0.27.0.dist-info → siliconcompiler-0.28.0.dist-info}/METADATA +8 -7
- {siliconcompiler-0.27.0.dist-info → siliconcompiler-0.28.0.dist-info}/RECORD +87 -45
- {siliconcompiler-0.27.0.dist-info → siliconcompiler-0.28.0.dist-info}/WHEEL +1 -1
- {siliconcompiler-0.27.0.dist-info → siliconcompiler-0.28.0.dist-info}/LICENSE +0 -0
- {siliconcompiler-0.27.0.dist-info → siliconcompiler-0.28.0.dist-info}/entry_points.txt +0 -0
- {siliconcompiler-0.27.0.dist-info → siliconcompiler-0.28.0.dist-info}/top_level.txt +0 -0
|
@@ -19,8 +19,10 @@ proc sc_global_placement_density {} {
|
|
|
19
19
|
# User specified adjustment
|
|
20
20
|
if { $openroad_gpl_uniform_placement_adjustment > 0.0 } {
|
|
21
21
|
set or_uniform_adjusted_density \
|
|
22
|
-
[expr {
|
|
23
|
-
|
|
22
|
+
[expr {
|
|
23
|
+
$or_uniform_density + ((1.0 - $or_uniform_density) *
|
|
24
|
+
$openroad_gpl_uniform_placement_adjustment) + $or_adjust_density_adder
|
|
25
|
+
}]
|
|
24
26
|
if { $or_uniform_adjusted_density > 1.00 } {
|
|
25
27
|
utl::warn FLW 1 "Adjusted density exceeds 1.00 ([format %0.3f $or_uniform_adjusted_density]),\
|
|
26
28
|
reverting to use ($openroad_gpl_place_density) for global placement"
|
|
@@ -56,8 +58,10 @@ proc sc_global_placement { args } {
|
|
|
56
58
|
global openroad_gpl_padding
|
|
57
59
|
|
|
58
60
|
set openroad_gpl_args []
|
|
59
|
-
if {
|
|
60
|
-
|
|
61
|
+
if {
|
|
62
|
+
$openroad_gpl_routability_driven == "true" &&
|
|
63
|
+
![info exists flags(-disable_routability_driven)]
|
|
64
|
+
} {
|
|
61
65
|
lappend openroad_gpl_args "-routability_driven"
|
|
62
66
|
}
|
|
63
67
|
if { $openroad_gpl_timing_driven == "true" } {
|
|
@@ -235,8 +239,10 @@ proc sc_design_has_unplaced_pads {} {
|
|
|
235
239
|
|
|
236
240
|
proc sc_design_has_placeable_ios {} {
|
|
237
241
|
foreach bterm [[ord::get_db_block] getBTerms] {
|
|
238
|
-
if {
|
|
239
|
-
|
|
242
|
+
if {
|
|
243
|
+
[$bterm getFirstPinPlacementStatus] != "FIXED" &&
|
|
244
|
+
[$bterm getFirstPinPlacementStatus] != "LOCKED"
|
|
245
|
+
} {
|
|
240
246
|
return true
|
|
241
247
|
}
|
|
242
248
|
}
|
|
@@ -9,7 +9,7 @@ source ./sc_manifest.tcl > /dev/null
|
|
|
9
9
|
###############################
|
|
10
10
|
|
|
11
11
|
proc sc_get_layer_name { name } {
|
|
12
|
-
if { [
|
|
12
|
+
if { [string is integer $name] } {
|
|
13
13
|
set layer [[ord::get_db_tech] findRoutingLayer $name]
|
|
14
14
|
if { $layer == "NULL" } {
|
|
15
15
|
utl::error FLW 1 "$name is not a valid routing layer."
|
|
@@ -23,18 +23,18 @@ proc sc_get_layer_name { name } {
|
|
|
23
23
|
# Schema Adapter
|
|
24
24
|
###############################
|
|
25
25
|
|
|
26
|
-
set sc_tool
|
|
27
|
-
set sc_step
|
|
28
|
-
set sc_index
|
|
29
|
-
set sc_flow
|
|
30
|
-
set sc_task
|
|
26
|
+
set sc_tool openroad
|
|
27
|
+
set sc_step [sc_cfg_get arg step]
|
|
28
|
+
set sc_index [sc_cfg_get arg index]
|
|
29
|
+
set sc_flow [sc_cfg_get option flow]
|
|
30
|
+
set sc_task [sc_cfg_get flowgraph $sc_flow $sc_step $sc_index task]
|
|
31
31
|
|
|
32
32
|
set sc_refdir [sc_cfg_tool_task_get refdir]
|
|
33
33
|
|
|
34
34
|
# Design
|
|
35
|
-
set sc_design
|
|
36
|
-
set sc_pdk
|
|
37
|
-
set sc_stackup
|
|
35
|
+
set sc_design [sc_top]
|
|
36
|
+
set sc_pdk [sc_cfg_get option pdk]
|
|
37
|
+
set sc_stackup [sc_cfg_get option stackup]
|
|
38
38
|
|
|
39
39
|
# Library
|
|
40
40
|
set sc_libtype [lindex [sc_cfg_tool_task_get {var} libtype] 0]
|
|
@@ -71,10 +71,14 @@ global_route -guide_file "./route.guide" \
|
|
|
71
71
|
######################
|
|
72
72
|
|
|
73
73
|
estimate_parasitics -global_routing
|
|
74
|
-
if {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
if {
|
|
75
|
+
$openroad_ant_check == "true" &&
|
|
76
|
+
[check_antennas -report_file "reports/${sc_design}_antenna.rpt"] != 0
|
|
77
|
+
} {
|
|
78
|
+
if {
|
|
79
|
+
$openroad_ant_repair == "true" &&
|
|
80
|
+
[llength [sc_cfg_get library $sc_mainlib asic cells antenna]] != 0
|
|
81
|
+
} {
|
|
78
82
|
set sc_antenna [lindex [sc_cfg_get library $sc_mainlib asic cells antenna] 0]
|
|
79
83
|
|
|
80
84
|
# Remove filler cells before attempting to repair antennas
|
|
@@ -14,8 +14,10 @@ sc_save_image "screenshot" "outputs/${sc_design}.png" $sc_resolution
|
|
|
14
14
|
|
|
15
15
|
gui::restore_display_controls
|
|
16
16
|
|
|
17
|
-
if {
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
if {
|
|
18
|
+
[sc_cfg_tool_task_exists {var} include_report_images] &&
|
|
19
|
+
[lindex [sc_cfg_tool_task_get {var} include_report_images] 0]
|
|
20
|
+
== "true"
|
|
21
|
+
} {
|
|
20
22
|
source -echo "${sc_refdir}/sc_write_images.tcl"
|
|
21
23
|
}
|
|
@@ -156,12 +156,13 @@ proc sc_image_estimated_routing_congestion {} {
|
|
|
156
156
|
sc_image_setup_default
|
|
157
157
|
|
|
158
158
|
suppress_message GRT 10
|
|
159
|
-
catch {
|
|
159
|
+
catch {
|
|
160
160
|
sc_image_heatmap "Estimated Congestion (RUDY)" \
|
|
161
161
|
"RUDY" \
|
|
162
162
|
"estimated_routing_congestion.png" \
|
|
163
163
|
"estimated routing congestion" \
|
|
164
|
-
0
|
|
164
|
+
0
|
|
165
|
+
} err
|
|
165
166
|
unsuppress_message GRT 10
|
|
166
167
|
}
|
|
167
168
|
|
|
@@ -271,30 +272,31 @@ proc sc_image_optimizer {} {
|
|
|
271
272
|
gui::set_display_controls "Instances/*" visible true
|
|
272
273
|
gui::set_display_controls "Instances/Physical/*" visible false
|
|
273
274
|
|
|
274
|
-
set hold_count
|
|
275
|
-
set input_count
|
|
276
|
-
set output_count
|
|
277
|
-
set repeater_count
|
|
278
|
-
set fanout_count
|
|
279
|
-
set load_slew_count
|
|
280
|
-
set max_cap_count
|
|
275
|
+
set hold_count [select -name "hold*" -type Inst -highlight 0] ;# green
|
|
276
|
+
set input_count [select -name "input*" -type Inst -highlight 1] ;# yellow
|
|
277
|
+
set output_count [select -name "output*" -type Inst -highlight 1]
|
|
278
|
+
set repeater_count [select -name "repeater*" -type Inst -highlight 3] ;# magenta
|
|
279
|
+
set fanout_count [select -name "fanout*" -type Inst -highlight 3]
|
|
280
|
+
set load_slew_count [select -name "load_slew*" -type Inst -highlight 3]
|
|
281
|
+
set max_cap_count [select -name "max_cap*" -type Inst -highlight 3]
|
|
281
282
|
set max_length_count [select -name "max_length*" -type Inst -highlight 3]
|
|
282
|
-
set wire_count
|
|
283
|
-
set rebuffer_count
|
|
284
|
-
set split_count
|
|
285
|
-
|
|
286
|
-
set select_count [expr {
|
|
287
|
-
$hold_count +
|
|
288
|
-
$input_count +
|
|
289
|
-
$output_count +
|
|
290
|
-
$repeater_count +
|
|
291
|
-
$fanout_count +
|
|
292
|
-
$load_slew_count +
|
|
293
|
-
$max_cap_count +
|
|
294
|
-
$max_length_count +
|
|
295
|
-
$wire_count +
|
|
296
|
-
$rebuffer_count +
|
|
297
|
-
$split_count
|
|
283
|
+
set wire_count [select -name "wire*" -type Inst -highlight 3]
|
|
284
|
+
set rebuffer_count [select -name "rebuffer*" -type Inst -highlight 4] ;# red
|
|
285
|
+
set split_count [select -name "split*" -type Inst -highlight 5] ;# dark green
|
|
286
|
+
|
|
287
|
+
set select_count [expr {
|
|
288
|
+
$hold_count +
|
|
289
|
+
$input_count +
|
|
290
|
+
$output_count +
|
|
291
|
+
$repeater_count +
|
|
292
|
+
$fanout_count +
|
|
293
|
+
$load_slew_count +
|
|
294
|
+
$max_cap_count +
|
|
295
|
+
$max_length_count +
|
|
296
|
+
$wire_count +
|
|
297
|
+
$rebuffer_count +
|
|
298
|
+
$split_count
|
|
299
|
+
}]
|
|
298
300
|
|
|
299
301
|
if { $select_count == 0 } {
|
|
300
302
|
# Nothing selected
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -8,9 +8,6 @@ def setup(chip):
|
|
|
8
8
|
Compiles Verilog and C/C++ sources into an executable. In addition to the
|
|
9
9
|
standard RTL inputs, this task reads C/C++ sources from :keypath:`input,
|
|
10
10
|
hll, c`. Outputs an executable in ``outputs/<design>.vexe``.
|
|
11
|
-
|
|
12
|
-
This task supports using the :keypath:`option, trace` parameter to enable
|
|
13
|
-
Verilator's ``--trace`` flag.
|
|
14
11
|
'''
|
|
15
12
|
|
|
16
13
|
# Generic tool setup.
|
|
@@ -69,7 +66,7 @@ def setup(chip):
|
|
|
69
66
|
"if true, enables trace generation.",
|
|
70
67
|
field='help')
|
|
71
68
|
chip.set('tool', tool, 'task', task, 'var', 'trace_type',
|
|
72
|
-
"specifies type of wave file to create when [
|
|
69
|
+
"specifies type of wave file to create when [trace] is set. Valid options are "
|
|
73
70
|
"'vcd' or 'fst'. Defaults to 'vcd'.",
|
|
74
71
|
field='help')
|
|
75
72
|
|
|
@@ -14,8 +14,7 @@ exist, through the following keypaths:
|
|
|
14
14
|
* :keypath:`option, idir`
|
|
15
15
|
|
|
16
16
|
For all tasks, this driver runs Verilator using the ``-sv`` switch to enable
|
|
17
|
-
parsing a subset of SystemVerilog features.
|
|
18
|
-
:keypath:`option, relax` to make warnings nonfatal.
|
|
17
|
+
parsing a subset of SystemVerilog features.
|
|
19
18
|
|
|
20
19
|
Documentation: https://verilator.org/guide/latest
|
|
21
20
|
|
|
File without changes
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
###############################
|
|
3
2
|
# Reading SC Schema
|
|
4
3
|
###############################
|
|
@@ -15,13 +14,13 @@ if { [sc_cfg_exists input fpga xdc] } {
|
|
|
15
14
|
} else {
|
|
16
15
|
set sc_constraint ""
|
|
17
16
|
}
|
|
18
|
-
set sc_tool
|
|
19
|
-
set sc_partname
|
|
20
|
-
set sc_step
|
|
21
|
-
set sc_index
|
|
22
|
-
set sc_flow
|
|
23
|
-
set sc_task
|
|
24
|
-
set sc_refdir
|
|
17
|
+
set sc_tool "vivado"
|
|
18
|
+
set sc_partname [sc_cfg_get fpga partname]
|
|
19
|
+
set sc_step [sc_cfg_get arg step]
|
|
20
|
+
set sc_index [sc_cfg_get arg index]
|
|
21
|
+
set sc_flow [sc_cfg_get option flow]
|
|
22
|
+
set sc_task [sc_cfg_get flowgraph $sc_flow $sc_step $sc_index task]
|
|
23
|
+
set sc_refdir [sc_cfg_tool_task_get refdir]
|
|
25
24
|
|
|
26
25
|
source $sc_refdir/sc_$sc_task.tcl
|
|
27
26
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Vivado is an FPGA programming tool suite from Xilinx used to
|
|
3
3
|
program Xilinx devices.
|
|
4
4
|
|
|
5
|
-
Documentation: https://www.
|
|
5
|
+
Documentation: https://www.amd.com/en/products/software/adaptive-socs-and-fpgas/vivado.html
|
|
6
6
|
'''
|
|
7
7
|
|
|
8
8
|
import json
|
|
File without changes
|
|
@@ -31,6 +31,9 @@ def setup(chip, clobber=True):
|
|
|
31
31
|
chip.add('tool', tool, 'task', task, 'output', design + '.net', step=step, index=index)
|
|
32
32
|
chip.add('tool', tool, 'task', task, 'output', design + '.place', step=step, index=index)
|
|
33
33
|
|
|
34
|
+
chip.set('tool', tool, 'task', task, 'var', 'placement', 'component placement constraints',
|
|
35
|
+
field='help')
|
|
36
|
+
|
|
34
37
|
|
|
35
38
|
def runtime_options(chip):
|
|
36
39
|
'''Command line options to vpr for the place step
|
|
@@ -75,12 +78,13 @@ def pre_process(chip):
|
|
|
75
78
|
|
|
76
79
|
step = chip.get('arg', 'step')
|
|
77
80
|
index = chip.get('arg', 'index')
|
|
81
|
+
tool, task = get_tool_task(chip, step, index)
|
|
78
82
|
|
|
79
83
|
part_name = chip.get('fpga', 'partname')
|
|
80
84
|
|
|
81
85
|
# If the user explicitly provides an XML constraints file, give that
|
|
82
86
|
# priority over other constraints input types:
|
|
83
|
-
if
|
|
87
|
+
if chip.valid('input', 'constraint', 'vpr_pins'):
|
|
84
88
|
constraint_file = vpr.find_single_file(chip, 'input', 'constraint', 'vpr_pins',
|
|
85
89
|
step=step, index=index,
|
|
86
90
|
file_not_found_msg="VPR constraints file not found")
|
|
@@ -88,7 +92,7 @@ def pre_process(chip):
|
|
|
88
92
|
if (constraint_file is not None):
|
|
89
93
|
shutil.copy2(constraint_file, vpr.auto_constraints())
|
|
90
94
|
|
|
91
|
-
elif
|
|
95
|
+
elif chip.valid('input', 'constraint', 'pcf'):
|
|
92
96
|
constraint_file = vpr.find_single_file(chip, 'input', 'constraint', 'pcf',
|
|
93
97
|
step=step, index=index,
|
|
94
98
|
file_not_found_msg="PCF constraints file not found")
|
|
@@ -111,11 +115,13 @@ def pre_process(chip):
|
|
|
111
115
|
generate_vpr_constraints_xml_file(all_place_constraints, vpr.auto_constraints())
|
|
112
116
|
|
|
113
117
|
else:
|
|
114
|
-
all_component_constraints = chip.
|
|
118
|
+
all_component_constraints = chip.get('tool', tool, 'task', task, 'var', 'placement',
|
|
119
|
+
step=step, index=index)
|
|
120
|
+
|
|
115
121
|
all_place_constraints = {}
|
|
116
|
-
for
|
|
117
|
-
place_constraint =
|
|
118
|
-
|
|
122
|
+
for constraint in all_component_constraints:
|
|
123
|
+
component, *place_constraint = constraint.split(",")
|
|
124
|
+
place_constraint = tuple([int(loc) for loc in place_constraint])
|
|
119
125
|
chip.logger.info(f'Place constraint for {component} at {place_constraint}')
|
|
120
126
|
all_place_constraints[component] = place_constraint
|
|
121
127
|
|
|
@@ -123,6 +129,14 @@ def pre_process(chip):
|
|
|
123
129
|
generate_vpr_constraints_xml_file(all_place_constraints, vpr.auto_constraints())
|
|
124
130
|
|
|
125
131
|
|
|
132
|
+
def add_placement_constraint(chip, component, location, step=None, index=None):
|
|
133
|
+
tool = 'vpr'
|
|
134
|
+
task = 'place'
|
|
135
|
+
|
|
136
|
+
constraint = f"{component},{','.join([str(loc) for loc in location])}"
|
|
137
|
+
|
|
138
|
+
chip.add('tool', tool, 'task', task, 'var', 'placement', constraint, step=step, index=index)
|
|
139
|
+
|
|
126
140
|
################################
|
|
127
141
|
# Post_process (post executable)
|
|
128
142
|
################################
|
siliconcompiler/tools/vpr/vpr.py
CHANGED
|
@@ -134,7 +134,7 @@ def runtime_options(chip):
|
|
|
134
134
|
'vpr_clock model must be set to ideal, route, or dedicated_clock_network',
|
|
135
135
|
chip=chip)
|
|
136
136
|
|
|
137
|
-
if
|
|
137
|
+
if chip.valid('input', 'constraint', 'sdc'):
|
|
138
138
|
sdc_file = find_single_file(chip, 'input', 'constraint', 'sdc',
|
|
139
139
|
step=step, index=index,
|
|
140
140
|
file_not_found_msg="SDC file not found")
|
|
File without changes
|
|
File without changes
|
|
@@ -6,14 +6,14 @@ set sc_tool yosys
|
|
|
6
6
|
yosys echo on
|
|
7
7
|
|
|
8
8
|
#Handling remote/local script execution
|
|
9
|
-
set sc_step
|
|
10
|
-
set sc_index
|
|
11
|
-
set sc_flow
|
|
12
|
-
set sc_task
|
|
13
|
-
set sc_refdir [sc_cfg_tool_task_get refdir
|
|
9
|
+
set sc_step [sc_cfg_get arg step]
|
|
10
|
+
set sc_index [sc_cfg_get arg index]
|
|
11
|
+
set sc_flow [sc_cfg_get option flow]
|
|
12
|
+
set sc_task [sc_cfg_get flowgraph $sc_flow $sc_step $sc_index task]
|
|
13
|
+
set sc_refdir [sc_cfg_tool_task_get refdir]
|
|
14
14
|
|
|
15
|
-
set sc_design
|
|
16
|
-
set sc_targetlibs
|
|
15
|
+
set sc_design [sc_top]
|
|
16
|
+
set sc_targetlibs [sc_get_asic_libraries logic]
|
|
17
17
|
|
|
18
18
|
# TODO: properly handle complexity here
|
|
19
19
|
set lib [lindex $sc_targetlibs 0]
|
|
@@ -10,21 +10,21 @@ yosys echo on
|
|
|
10
10
|
# Schema Adapter
|
|
11
11
|
###############################
|
|
12
12
|
|
|
13
|
-
set sc_tool
|
|
14
|
-
set sc_step
|
|
15
|
-
set sc_index
|
|
16
|
-
set sc_flow
|
|
17
|
-
set sc_task
|
|
13
|
+
set sc_tool yosys
|
|
14
|
+
set sc_step [sc_cfg_get arg step]
|
|
15
|
+
set sc_index [sc_cfg_get arg index]
|
|
16
|
+
set sc_flow [sc_cfg_get option flow]
|
|
17
|
+
set sc_task [sc_cfg_get flowgraph $sc_flow $sc_step $sc_index task]
|
|
18
18
|
set sc_refdir [sc_cfg_tool_task_get refdir]
|
|
19
19
|
|
|
20
20
|
####################
|
|
21
21
|
# DESIGNER's CHOICE
|
|
22
22
|
####################
|
|
23
23
|
|
|
24
|
-
set sc_design
|
|
25
|
-
set sc_flow
|
|
26
|
-
set sc_optmode
|
|
27
|
-
set sc_pdk
|
|
24
|
+
set sc_design [sc_top]
|
|
25
|
+
set sc_flow [sc_cfg_get option flow]
|
|
26
|
+
set sc_optmode [sc_cfg_get option optmode]
|
|
27
|
+
set sc_pdk [sc_cfg_get option pdk]
|
|
28
28
|
|
|
29
29
|
########################################################
|
|
30
30
|
# Design Inputs
|
|
@@ -82,8 +82,8 @@ proc determine_keep_hierarchy { iter cell_limit } {
|
|
|
82
82
|
# DESIGNER's CHOICE
|
|
83
83
|
####################
|
|
84
84
|
|
|
85
|
-
set sc_logiclibs
|
|
86
|
-
set sc_macrolibs
|
|
85
|
+
set sc_logiclibs [sc_get_asic_libraries logic]
|
|
86
|
+
set sc_macrolibs [sc_get_asic_libraries macro]
|
|
87
87
|
|
|
88
88
|
set sc_libraries [sc_cfg_tool_task_get {file} synthesis_libraries]
|
|
89
89
|
if { [sc_cfg_tool_task_exists {file} synthesis_libraries_macros] } {
|
|
@@ -127,8 +127,10 @@ proc has_tie_cell { type } {
|
|
|
127
127
|
upvar sc_mainlib sc_mainlib
|
|
128
128
|
upvar sc_tool sc_tool
|
|
129
129
|
|
|
130
|
-
return [expr {
|
|
131
|
-
|
|
130
|
+
return [expr {
|
|
131
|
+
[sc_cfg_exists library $sc_mainlib option {var} yosys_tie${type}_cell] &&
|
|
132
|
+
[sc_cfg_exists library $sc_mainlib option {var} yosys_tie${type}_port]
|
|
133
|
+
}]
|
|
132
134
|
}
|
|
133
135
|
|
|
134
136
|
proc get_tie_cell { type } {
|
|
@@ -149,9 +151,11 @@ proc has_buffer_cell { } {
|
|
|
149
151
|
upvar sc_mainlib sc_mainlib
|
|
150
152
|
upvar sc_tool sc_tool
|
|
151
153
|
|
|
152
|
-
return [expr {
|
|
153
|
-
|
|
154
|
-
|
|
154
|
+
return [expr {
|
|
155
|
+
[sc_cfg_exists library $sc_mainlib option {var} yosys_buffer_cell] &&
|
|
156
|
+
[sc_cfg_exists library $sc_mainlib option {var} yosys_buffer_input] &&
|
|
157
|
+
[sc_cfg_exists library $sc_mainlib option {var} yosys_buffer_output]
|
|
158
|
+
}]
|
|
155
159
|
}
|
|
156
160
|
|
|
157
161
|
proc get_buffer_cell { } {
|
|
@@ -160,8 +164,8 @@ proc get_buffer_cell { } {
|
|
|
160
164
|
upvar sc_tool sc_tool
|
|
161
165
|
|
|
162
166
|
set cell [lindex [sc_cfg_get library $sc_mainlib option {var} yosys_buffer_cell] 0]
|
|
163
|
-
set in
|
|
164
|
-
set out
|
|
167
|
+
set in [lindex [sc_cfg_get library $sc_mainlib option {var} yosys_buffer_input] 0]
|
|
168
|
+
set out [lindex [sc_cfg_get library $sc_mainlib option {var} yosys_buffer_output] 0]
|
|
165
169
|
|
|
166
170
|
return "$cell $in $out"
|
|
167
171
|
}
|
|
@@ -207,8 +211,10 @@ yosys hierarchy -top $sc_design
|
|
|
207
211
|
# Mark modules to keep from getting removed in flattening
|
|
208
212
|
preserve_modules
|
|
209
213
|
|
|
210
|
-
set flatten_design [expr {
|
|
211
|
-
|
|
214
|
+
set flatten_design [expr {
|
|
215
|
+
[lindex [sc_cfg_tool_task_get var flatten] 0]
|
|
216
|
+
== "true"
|
|
217
|
+
}]
|
|
212
218
|
set synth_args []
|
|
213
219
|
if { $flatten_design } {
|
|
214
220
|
lappend synth_args "-flatten"
|
|
@@ -359,8 +365,10 @@ if { [llength $yosys_hilomap_args] != 0 } {
|
|
|
359
365
|
yosys hilomap -singleton {*}$yosys_hilomap_args
|
|
360
366
|
}
|
|
361
367
|
|
|
362
|
-
if {
|
|
363
|
-
|
|
368
|
+
if {
|
|
369
|
+
[has_buffer_cell] &&
|
|
370
|
+
[sc_cfg_tool_task_get var add_buffers] == "true"
|
|
371
|
+
} {
|
|
364
372
|
yosys insbuf -buf {*}[get_buffer_cell]
|
|
365
373
|
}
|
|
366
374
|
|
|
@@ -1,27 +1,31 @@
|
|
|
1
|
-
|
|
2
1
|
source "$sc_refdir/syn_asic_fpga_shared.tcl"
|
|
3
2
|
|
|
4
3
|
proc legalize_flops { feature_set } {
|
|
5
|
-
|
|
6
4
|
set legalize_flop_types []
|
|
7
5
|
|
|
8
|
-
if {
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
if {
|
|
7
|
+
[lsearch -exact $feature_set enable] >= 0 &&
|
|
8
|
+
[lsearch -exact $feature_set async_set] >= 0 &&
|
|
9
|
+
[lsearch -exact $feature_set async_reset] >= 0
|
|
10
|
+
} {
|
|
11
11
|
lappend legalize_flop_types \$_DFF_P_
|
|
12
12
|
lappend legalize_flop_types \$_DFF_PN?_
|
|
13
13
|
lappend legalize_flop_types \$_DFFE_PP_
|
|
14
14
|
lappend legalize_flop_types \$_DFFE_PN?P_
|
|
15
15
|
lappend legalize_flop_types \$_DFFSR_PNN_
|
|
16
16
|
lappend legalize_flop_types \$_DFFSRE_PNNP_
|
|
17
|
-
} elseif {
|
|
18
|
-
|
|
17
|
+
} elseif {
|
|
18
|
+
[lsearch -exact $feature_set enable] >= 0 &&
|
|
19
|
+
[lsearch -exact $feature_set async_set] >= 0
|
|
20
|
+
} {
|
|
19
21
|
lappend legalize_flop_types \$_DFF_P_
|
|
20
22
|
lappend legalize_flop_types \$_DFF_PN1_
|
|
21
23
|
lappend legalize_flop_types \$_DFFE_PP_
|
|
22
24
|
lappend legalize_flop_types \$_DFFE_PN1P_
|
|
23
|
-
} elseif {
|
|
24
|
-
|
|
25
|
+
} elseif {
|
|
26
|
+
[lsearch -exact $feature_set enable] >= 0 &&
|
|
27
|
+
[lsearch -exact $feature_set async_reset] >= 0
|
|
28
|
+
} {
|
|
25
29
|
lappend legalize_flop_types \$_DFF_P_
|
|
26
30
|
lappend legalize_flop_types \$_DFF_PN0_
|
|
27
31
|
lappend legalize_flop_types \$_DFFE_PP_
|
|
@@ -31,8 +35,10 @@ proc legalize_flops { feature_set } {
|
|
|
31
35
|
lappend legalize_flop_types \$_DFF_P??_
|
|
32
36
|
lappend legalize_flop_types \$_DFFE_PP_
|
|
33
37
|
lappend legalize_flop_types \$_DFFE_P??P_
|
|
34
|
-
} elseif {
|
|
35
|
-
|
|
38
|
+
} elseif {
|
|
39
|
+
[lsearch -exact $feature_set async_set] >= 0 &&
|
|
40
|
+
[lsearch -exact $feature_set async_reset] >= 0
|
|
41
|
+
} {
|
|
36
42
|
lappend legalize_flop_types \$_DFF_P_
|
|
37
43
|
lappend legalize_flop_types \$_DFF_PN?_
|
|
38
44
|
lappend legalize_flop_types \$_DFFSR_PNN_
|
|
@@ -59,8 +65,7 @@ proc legalize_flops { feature_set } {
|
|
|
59
65
|
}
|
|
60
66
|
|
|
61
67
|
proc get_dsp_options { sc_syn_dsp_options } {
|
|
62
|
-
|
|
63
|
-
set option_text [ list ]
|
|
68
|
+
set option_text [list]
|
|
64
69
|
foreach dsp_option $sc_syn_dsp_options {
|
|
65
70
|
lappend option_text -D $dsp_option
|
|
66
71
|
}
|
|
@@ -80,7 +85,7 @@ if { [sc_cfg_exists fpga $sc_partname var feature_set] } {
|
|
|
80
85
|
set sc_syn_feature_set \
|
|
81
86
|
[sc_cfg_get fpga $sc_partname var feature_set]
|
|
82
87
|
} else {
|
|
83
|
-
set sc_syn_feature_set [
|
|
88
|
+
set sc_syn_feature_set [list]
|
|
84
89
|
}
|
|
85
90
|
|
|
86
91
|
if { [sc_cfg_exists fpga $sc_partname var yosys_dsp_options] } {
|
|
@@ -89,7 +94,7 @@ if { [sc_cfg_exists fpga $sc_partname var yosys_dsp_options] } {
|
|
|
89
94
|
[sc_cfg_get fpga $sc_partname var yosys_dsp_options]
|
|
90
95
|
yosys log "Yosys DSP techmap options = $sc_syn_dsp_options"
|
|
91
96
|
} else {
|
|
92
|
-
set sc_syn_dsp_options [
|
|
97
|
+
set sc_syn_dsp_options [list]
|
|
93
98
|
}
|
|
94
99
|
|
|
95
100
|
# TODO: add logic that remaps yosys built in name based on part number
|
|
@@ -101,13 +106,11 @@ yosys hierarchy -top $sc_design
|
|
|
101
106
|
if { [string match {ice*} $sc_partname] } {
|
|
102
107
|
yosys synth_ice40 -top $sc_design -json "${sc_design}.netlist.json"
|
|
103
108
|
} else {
|
|
104
|
-
|
|
105
109
|
# Pre-processing step: if DSPs instance are hard-coded into
|
|
106
110
|
# the user's design, we can use a blackbox flow for DSP mapping
|
|
107
111
|
# as follows:
|
|
108
112
|
|
|
109
113
|
if { [sc_cfg_exists fpga $sc_partname file yosys_macrolib] } {
|
|
110
|
-
|
|
111
114
|
set sc_syn_macrolibs \
|
|
112
115
|
[sc_cfg_get fpga $sc_partname file yosys_macrolib]
|
|
113
116
|
|
|
File without changes
|
|
File without changes
|
siliconcompiler/use.py
CHANGED
|
@@ -12,7 +12,8 @@ class PackageChip(Chip):
|
|
|
12
12
|
super().__init__(name)
|
|
13
13
|
|
|
14
14
|
if len(args) == 2:
|
|
15
|
-
self.logger.warning(
|
|
15
|
+
self.logger.warning(
|
|
16
|
+
f'passing Chip object to {name} ({type(self).__name__}) is deprecated')
|
|
16
17
|
|
|
17
18
|
path = None
|
|
18
19
|
ref = None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: siliconcompiler
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.28.0
|
|
4
4
|
Summary: A compiler framework that automates translation from source code to silicon.
|
|
5
5
|
Author-email: Andreas Olofsson <andreas.d.olofsson@gmail.com>
|
|
6
6
|
License: Apache License 2.0
|
|
@@ -23,7 +23,7 @@ Requires-Dist: packaging <24,>=21.3
|
|
|
23
23
|
Requires-Dist: psutil >=5.8.0
|
|
24
24
|
Requires-Dist: Pillow ==10.4.0
|
|
25
25
|
Requires-Dist: GitPython ==3.1.43
|
|
26
|
-
Requires-Dist: lambdapdk >=0.1.
|
|
26
|
+
Requires-Dist: lambdapdk >=0.1.31
|
|
27
27
|
Requires-Dist: PyGithub ==2.4.0
|
|
28
28
|
Requires-Dist: urllib3 >=1.26.0
|
|
29
29
|
Requires-Dist: fasteners ==0.19
|
|
@@ -31,7 +31,7 @@ Requires-Dist: fastjsonschema ==2.20.0
|
|
|
31
31
|
Requires-Dist: docker ==7.1.0
|
|
32
32
|
Requires-Dist: sc-surelog ==1.84.1
|
|
33
33
|
Requires-Dist: orjson ==3.10.7
|
|
34
|
-
Requires-Dist: streamlit ==1.
|
|
34
|
+
Requires-Dist: streamlit ==1.38.0
|
|
35
35
|
Requires-Dist: streamlit-agraph ==0.0.45
|
|
36
36
|
Requires-Dist: streamlit-tree-select ==0.0.5
|
|
37
37
|
Requires-Dist: streamlit-javascript ==0.1.5
|
|
@@ -43,21 +43,22 @@ Requires-Dist: pydata-sphinx-theme ==0.15.4 ; extra == 'docs'
|
|
|
43
43
|
Requires-Dist: sc-leflib >=0.2.0 ; extra == 'docs'
|
|
44
44
|
Provides-Extra: examples
|
|
45
45
|
Requires-Dist: migen ==0.9.2 ; extra == 'examples'
|
|
46
|
-
Requires-Dist: lambdalib ==0.2.
|
|
46
|
+
Requires-Dist: lambdalib ==0.2.10 ; extra == 'examples'
|
|
47
47
|
Provides-Extra: profile
|
|
48
48
|
Requires-Dist: gprof2dot ==2024.6.6 ; extra == 'profile'
|
|
49
49
|
Provides-Extra: test
|
|
50
|
-
Requires-Dist: pytest ==8.3.
|
|
50
|
+
Requires-Dist: pytest ==8.3.3 ; extra == 'test'
|
|
51
51
|
Requires-Dist: pytest-xdist ==3.6.1 ; extra == 'test'
|
|
52
52
|
Requires-Dist: pytest-timeout ==2.3.1 ; extra == 'test'
|
|
53
53
|
Requires-Dist: pytest-asyncio ==0.24.0 ; extra == 'test'
|
|
54
54
|
Requires-Dist: pytest-cov ==5.0.0 ; extra == 'test'
|
|
55
|
+
Requires-Dist: responses ==0.25.3 ; extra == 'test'
|
|
55
56
|
Requires-Dist: PyVirtualDisplay ==3.0 ; extra == 'test'
|
|
56
57
|
Requires-Dist: flake8 ==7.1.1 ; extra == 'test'
|
|
57
|
-
Requires-Dist: tclint ==0.
|
|
58
|
+
Requires-Dist: tclint ==0.4.0 ; extra == 'test'
|
|
58
59
|
Requires-Dist: codespell ==2.3.0 ; extra == 'test'
|
|
59
60
|
|
|
60
|
-

|
|
61
62
|
|
|
62
63
|
[](https://github.com/siliconcompiler/siliconcompiler/actions/workflows/python_ci.yml)
|
|
63
64
|
[](https://github.com/siliconcompiler/siliconcompiler/actions/workflows/tools_ci.yml)
|