cvw/pipelined/dm/tap.do
2022-11-01 07:36:39 -05:00

82 lines
2.4 KiB
Plaintext

# Copyright 1991-2016 Mentor Graphics Corporation
#
# Modification by Oklahoma State University
# Use with Testbench
# James Stine, 2008
# Go Cowboys!!!!!!
#
# All Rights Reserved.
#
# THIS WORK CONTAINS TRADE SECRET AND PROPRIETARY INFORMATION
# WHICH IS THE PROPERTY OF MENTOR GRAPHICS CORPORATION
# OR ITS LICENSORS AND IS SUBJECT TO LICENSE TERMS.
# Use this run.do file to run this example.
# Either bring up ModelSim and type the following at the "ModelSim>" prompt:
# do run.do
# or, to run from a shell, type the following at the shell prompt:
# vsim -do run.do -c
# (omit the "-c" to see the GUI while running from the shell)
onbreak {resume}
# create library
if [file exists work] {
vdel -all
}
vlib work
# compile source files
vlog tap_fsm.sv tap_tb.sv
# start and run simulation
vsim -voptargs=+acc work.stimulus
view list
view wave
-- display input and output signals as hexidecimal values
# Diplays All Signals recursively
# add wave -hex -r /stimulus/*
add wave -noupdate -divider -height 32 "TAP"
add wave -hex /stimulus/dut/reset
add wave -hex /stimulus/dut/clk
add wave -hex /stimulus/dut/tms
add wave -noupdate -divider -height 32 "State for TAP"
add wave -hex /stimulus/dut/state
add wave -hex /stimulus/dut/nextstate
add wave -noupdate -divider -height 32 "Outputs"
add wave -hex /stimulus/dut/test_logic_reset;
add wave -hex /stimulus/dut/run_test_idle;
add wave -hex /stimulus/dut/select_dr_scan;
add wave -hex /stimulus/dut/capture_dr;
add wave -hex /stimulus/dut/shift_dr;
add wave -hex /stimulus/dut/exit1_dr;
add wave -hex /stimulus/dut/pause_dr;
add wave -hex /stimulus/dut/exit2_dr;
add wave -hex /stimulus/dut/update_dr;
add wave -hex /stimulus/dut/select_ir_scan;
add wave -hex /stimulus/dut/capture_ir;
add wave -hex /stimulus/dut/shift_ir;
add wave -hex /stimulus/dut/exit1_ir;
add wave -hex /stimulus/dut/pause_ir;
add wave -hex /stimulus/dut/exit2_ir;
add wave -hex /stimulus/dut/update_ir;
-- Set Wave Output Items
TreeUpdate [SetDefaultTree]
WaveRestoreZoom {0 ps} {75 ns}
configure wave -namecolwidth 250
configure wave -valuecolwidth 300
configure wave -justifyvalue left
configure wave -signalnamewidth 1
configure wave -snapdistance 10
configure wave -datasetprefix 0
configure wave -rowmargin 4
configure wave -childrowmargin 2
-- Run the Simulation
run 1000 ns