File: dmd_design_build.tcl

package info (click to toggle)
uhd 4.8.0.0%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 183,172 kB
  • sloc: cpp: 279,415; python: 109,850; ansic: 103,348; vhdl: 57,230; tcl: 20,007; xml: 8,581; makefile: 2,863; sh: 2,797; pascal: 230; javascript: 120; csh: 94; asm: 20; perl: 11
file content (30 lines) | stat: -rw-r--r-- 1,189 bytes parent folder | download | duplicates (3)
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
#
# Copyright 2022 Ettus Research, a National Instruments Brand
#
# SPDX-License-Identifier: LGPL-3.0-or-later
#
#   This is a template that will be copied to a project's
#   build directory.
#   This file contains the sequence of steps required to
#   build and generate outputs for Lattice programmables.
#   It works in conjuction with Lattice TCL Console (pnmainc).
#   This file has the pre-requisite of setting the following
#   environment variables:
#     - DMD_PROJECT_FILE  : Lattice project file name
#     - DMD_IMPL          : Implementation to use in said project
#     - DMD_GIT_HASH      : Hash to be consumed in this build
#
#   Usage:
#       pnmainc.exe build.tcl > <LOG_FILE_NAME>

prj_project open $::env(DMD_PROJECT_FILE)
prj_impl option -append "VERILOG_DIRECTIVES" $::env(DMD_GIT_HASH)
prj_run Synthesis -impl $::env(DMD_IMPL)
prj_run Translate -impl $::env(DMD_IMPL)
prj_run Map -impl $::env(DMD_IMPL)
prj_run PAR -impl $::env(DMD_IMPL)
prj_run PAR -impl $::env(DMD_IMPL) -task PARTrace
prj_run Export -impl $::env(DMD_IMPL) -task Bitgen
prj_run Export -impl $::env(DMD_IMPL) -task Jedecgen
prj_run Export -impl $::env(DMD_IMPL) -task Jedec4Xo3l
prj_project close