1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80 | ###############################################################################
# Copyright (c) 2011-2024 by Altair Engineering, Inc.
# All rights reserved.
#
# Altair Engineering, Inc. makes this software available as part of the Vision
# tool platform. As long as you are a licensee of the Vision tool platform
# you may make copies of the software and modify it to be used within the
# Vision tool platform, but you must include all of this notice on any copy.
# Redistribution without written permission to any third party, with or
# without modification, is not permitted.
# Altair Engineering, Inc. does not warrant that this software is error free
# or fit for any purpose. Altair Engineering, Inc. disclaims any liability for
# all claims, expenses, losses, damages and costs any user may incur as a
# result of using, copying or modifying the software.
# =============================================================================
# @userware
# Quartus/TimeQuest Netlist Exporter
# @section
# Link to Other Tools
# @description
# Transfer the timing netlist from Quartus to a zdb tcl file.
#
# Script that can be executed in TimeQuest to transfer the timing
# netlist.
#
# IMPORTANT: This script is NOT a *Vision Userware.
#
# It is a Tcl script that can be
# executed in Altera's Quartus/TimeQuest tools to export the netlist
# for RTLvision PRO as a Tcl Userware file.
# Run this script as:
# ```
# quartus_sta -report=getNetlist.tcl <Project>
# ```
# It will generate the file `<Project>.rtlvision.tcl` containing
# `$db load ...` commands. This file can be loaded as a Userware
# in RTLvision PRO.
# @files
# quartus/getNetlist.tcl
# @tag
# rtl verilog fpga
###############################################################################
array set quartus {}
##
# Load the file that contain the procedures to access the Quartus DB.
#
source [file join [file dirname [info script]] accessDB.tcl]
##
# Open the output file.
#
set fileid [open $quartus(project).rtlvision.tcl w]
##
# Write a header to the generated script.
#
puts $fileid "# Script generated by quartus_sta with getNetlist.tcl"
##
# Write code to the output file to enable the progress bar.
#
puts $fileid "zprogress begin"
##
# Start the netlist transfer from Quartus to zdb.
#
AccessDB:Copy2zdb $fileid 1
##
# Write code to the output file to end the progress bar.
#
puts $fileid "zprogress end"
##
# Close the output file.
#
close $fileid
|