c8051.scr

来自「51单片机内核vhdl实现 xilinx平台的」· SCR 代码 · 共 41 行

SCR
41
字号
/* ************************************************************************ */
/* Copyright (c) 1997-2001  Evatronix SA                                    */
/* ************************************************************************ */
/* Please review the terms of the license agreement before using this file. */
/* If you are not an authorised user, please destroy this script file and   */
/* notify Evatronix SA immediately that you inadvertently received an       */
/* unauthorised copy.                                                       */
/* ************************************************************************ */

/* ------------------------------------------------------------------------ */
/* Project name         : C8051                                             */
/* Project description  : C8051 Microcontroller Unit                        */
/* File name            : C8051.SCR                                         */
/* File contents        : C8051 top-level structure synthesis               */
/* Purpose              : Sample Script for Synopsys                        */
/* Design Engineer      : M.B.                                              */
/* Version              : 3.01                                              */
/* Last modification    : 2001-10-01                                        */
/* ------------------------------------------------------------------------ */

module      = "C8051"
source_dir  = "./src/core/"
work_dir    = "./tools/synopsys/work/"

sh mkdir work_dir
define_design_lib C8051_lib -path work_dir

analyze -format vhdl -lib C8051_lib {source_dir + "c8051.vhd"}

elaborate C8051 -arch "Structural" -lib C8051_lib -update
current_design = "C8051.db:C8051"

create_clock -name "clk" -period 20 -waveform {   "0" "10" } {   "clk" }

write -format db -hierarchy -output work_dir + module + ".db"
compile
current_design = "C8051.db:C8051"
write -format db -hierarchy -output work_dir + module + ".db"

/* ************************************************************************ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?