/* quartus_eda --gen_testbench --tool=modelsim_oem --format=verilog --write_settings_files=off bus2627 -c bus2627 --vector_source="D:/Projects/quartus/bus/Waveform.vwf" --testbench_file="D:/Projects/quartus/bus/simulation/qsim/Waveform.vwf.vt" quartus_eda --gen_testbench --tool=modelsim_oem --format=verilog --write_settings_files=off bus2627 -c bus2627 --vector_source="D:/Projects/quartus/bus/Waveform.vwf" --testbench_file="D:/Projects/quartus/bus/simulation/qsim/Waveform.vwf.vt" quartus_eda --write_settings_files=off --simulation --functional=on --flatten_buses=off --tool=modelsim_oem --format=verilog --output_directory="D:/Projects/quartus/bus/simulation/qsim/" bus2627 -c bus2627 quartus_eda --write_settings_files=off --simulation --functional=off --flatten_buses=off --timescale=1ps --tool=modelsim_oem --format=verilog --output_directory="D:/Projects/quartus/bus/simulation/qsim/" bus2627 -c bus2627 onerror {exit -code 1} vlib work vlog -work work bus2627.vo vlog -work work Waveform.vwf.vt vsim -novopt -c -t 1ps -L cycloneive_ver -L altera_ver -L altera_mf_ver -L 220model_ver -L sgate_ver -L altera_lnsim_ver work.bus2627_vlg_vec_tst vcd file -direction bus2627.msim.vcd vcd add -internal bus2627_vlg_vec_tst/* vcd add -internal bus2627_vlg_vec_tst/i1/* proc simTimestamp {} { echo "Simulation time: $::now ps" if { [string equal running [runStatus]] } { after 2500 simTimestamp } } after 2500 simTimestamp run -all quit -f onerror {exit -code 1} vlib work vlog -work work bus2627.vo vlog -work work Waveform.vwf.vt vsim -novopt -c -t 1ps -L cycloneive_ver -L altera_ver -L altera_mf_ver -L 220model_ver -L sgate_ver -L altera_lnsim_ver work.bus2627_vlg_vec_tst vcd file -direction bus2627.msim.vcd vcd add -internal bus2627_vlg_vec_tst/* vcd add -internal bus2627_vlg_vec_tst/i1/* proc simTimestamp {} { echo "Simulation time: $::now ps" if { [string equal running [runStatus]] } { after 2500 simTimestamp } } after 2500 simTimestamp run -all quit -f verilog */ /* WARNING: Do NOT edit the input and output ports in this file in a text editor if you plan to continue editing the block that represents it in the Block Editor! File corruption is VERY likely to occur. */ /* Copyright (C) 2017 Intel Corporation. All rights reserved. Your use of Intel Corporation's design tools, logic functions and other software and tools, and its AMPP partner logic functions, and any output files from any of the foregoing (including device programming or simulation files), and any associated documentation or information are expressly subject to the terms and conditions of the Intel Program License Subscription Agreement, the Intel Quartus Prime License Agreement, the Intel FPGA IP License Agreement, or other applicable license agreement, including, without limitation, that your use is for the sole purpose of programming logic devices manufactured by Intel and sold by Intel or its authorized distributors. Please refer to the applicable agreement for further details. */ HEADER { VERSION = 1; TIME_UNIT = ns; DATA_OFFSET = 0.0; DATA_DURATION = 320.0; SIMULATION_TIME = 0.0; GRID_PHASE = 0.0; GRID_PERIOD = 10.0; GRID_DUTY_CYCLE = 50; } SIGNAL("bus") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = BUS; WIDTH = 8; LSB_INDEX = 0; DIRECTION = OUTPUT; PARENT = ""; } SIGNAL("bus[7]") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = SINGLE_BIT; WIDTH = 1; LSB_INDEX = -1; DIRECTION = OUTPUT; PARENT = "bus"; } SIGNAL("bus[6]") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = SINGLE_BIT; WIDTH = 1; LSB_INDEX = -1; DIRECTION = OUTPUT; PARENT = "bus"; } SIGNAL("bus[5]") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = SINGLE_BIT; WIDTH = 1; LSB_INDEX = -1; DIRECTION = OUTPUT; PARENT = "bus"; } SIGNAL("bus[4]") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = SINGLE_BIT; WIDTH = 1; LSB_INDEX = -1; DIRECTION = OUTPUT; PARENT = "bus"; } SIGNAL("bus[3]") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = SINGLE_BIT; WIDTH = 1; LSB_INDEX = -1; DIRECTION = OUTPUT; PARENT = "bus"; } SIGNAL("bus[2]") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = SINGLE_BIT; WIDTH = 1; LSB_INDEX = -1; DIRECTION = OUTPUT; PARENT = "bus"; } SIGNAL("bus[1]") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = SINGLE_BIT; WIDTH = 1; LSB_INDEX = -1; DIRECTION = OUTPUT; PARENT = "bus"; } SIGNAL("bus[0]") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = SINGLE_BIT; WIDTH = 1; LSB_INDEX = -1; DIRECTION = OUTPUT; PARENT = "bus"; } SIGNAL("CLK2") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = SINGLE_BIT; WIDTH = 1; LSB_INDEX = -1; DIRECTION = INPUT; PARENT = ""; } SIGNAL("CLK1") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = SINGLE_BIT; WIDTH = 1; LSB_INDEX = -1; DIRECTION = INPUT; PARENT = ""; } SIGNAL("CLK3") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = SINGLE_BIT; WIDTH = 1; LSB_INDEX = -1; DIRECTION = INPUT; PARENT = ""; } SIGNAL("CLK4") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = SINGLE_BIT; WIDTH = 1; LSB_INDEX = -1; DIRECTION = INPUT; PARENT = ""; } SIGNAL("d0") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = BUS; WIDTH = 8; LSB_INDEX = 0; DIRECTION = INPUT; PARENT = ""; } SIGNAL("d0[7]") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = SINGLE_BIT; WIDTH = 1; LSB_INDEX = -1; DIRECTION = INPUT; PARENT = "d0"; } SIGNAL("d0[6]") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = SINGLE_BIT; WIDTH = 1; LSB_INDEX = -1; DIRECTION = INPUT; PARENT = "d0"; } SIGNAL("d0[5]") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = SINGLE_BIT; WIDTH = 1; LSB_INDEX = -1; DIRECTION = INPUT; PARENT = "d0"; } SIGNAL("d0[4]") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = SINGLE_BIT; WIDTH = 1; LSB_INDEX = -1; DIRECTION = INPUT; PARENT = "d0"; } SIGNAL("d0[3]") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = SINGLE_BIT; WIDTH = 1; LSB_INDEX = -1; DIRECTION = INPUT; PARENT = "d0"; } SIGNAL("d0[2]") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = SINGLE_BIT; WIDTH = 1; LSB_INDEX = -1; DIRECTION = INPUT; PARENT = "d0"; } SIGNAL("d0[1]") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = SINGLE_BIT; WIDTH = 1; LSB_INDEX = -1; DIRECTION = INPUT; PARENT = "d0"; } SIGNAL("d0[0]") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = SINGLE_BIT; WIDTH = 1; LSB_INDEX = -1; DIRECTION = INPUT; PARENT = "d0"; } SIGNAL("led") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = BUS; WIDTH = 8; LSB_INDEX = 0; DIRECTION = OUTPUT; PARENT = ""; } SIGNAL("led[7]") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = SINGLE_BIT; WIDTH = 1; LSB_INDEX = -1; DIRECTION = OUTPUT; PARENT = "led"; } SIGNAL("led[6]") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = SINGLE_BIT; WIDTH = 1; LSB_INDEX = -1; DIRECTION = OUTPUT; PARENT = "led"; } SIGNAL("led[5]") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = SINGLE_BIT; WIDTH = 1; LSB_INDEX = -1; DIRECTION = OUTPUT; PARENT = "led"; } SIGNAL("led[4]") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = SINGLE_BIT; WIDTH = 1; LSB_INDEX = -1; DIRECTION = OUTPUT; PARENT = "led"; } SIGNAL("led[3]") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = SINGLE_BIT; WIDTH = 1; LSB_INDEX = -1; DIRECTION = OUTPUT; PARENT = "led"; } SIGNAL("led[2]") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = SINGLE_BIT; WIDTH = 1; LSB_INDEX = -1; DIRECTION = OUTPUT; PARENT = "led"; } SIGNAL("led[1]") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = SINGLE_BIT; WIDTH = 1; LSB_INDEX = -1; DIRECTION = OUTPUT; PARENT = "led"; } SIGNAL("led[0]") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = SINGLE_BIT; WIDTH = 1; LSB_INDEX = -1; DIRECTION = OUTPUT; PARENT = "led"; } SIGNAL("SELECT") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = BUS; WIDTH = 2; LSB_INDEX = 0; DIRECTION = INPUT; PARENT = ""; } SIGNAL("SELECT[1]") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = SINGLE_BIT; WIDTH = 1; LSB_INDEX = -1; DIRECTION = INPUT; PARENT = "SELECT"; } SIGNAL("SELECT[0]") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = SINGLE_BIT; WIDTH = 1; LSB_INDEX = -1; DIRECTION = INPUT; PARENT = "SELECT"; } SIGNAL("we") { VALUE_TYPE = NINE_LEVEL_BIT; SIGNAL_TYPE = SINGLE_BIT; WIDTH = 1; LSB_INDEX = -1; DIRECTION = INPUT; PARENT = ""; } TRANSITION_LIST("bus[7]") { NODE { REPEAT = 1; LEVEL X FOR 320.0; } } TRANSITION_LIST("bus[6]") { NODE { REPEAT = 1; LEVEL X FOR 320.0; } } TRANSITION_LIST("bus[5]") { NODE { REPEAT = 1; LEVEL X FOR 320.0; } } TRANSITION_LIST("bus[4]") { NODE { REPEAT = 1; LEVEL X FOR 320.0; } } TRANSITION_LIST("bus[3]") { NODE { REPEAT = 1; LEVEL X FOR 320.0; } } TRANSITION_LIST("bus[2]") { NODE { REPEAT = 1; LEVEL X FOR 320.0; } } TRANSITION_LIST("bus[1]") { NODE { REPEAT = 1; LEVEL X FOR 320.0; } } TRANSITION_LIST("bus[0]") { NODE { REPEAT = 1; LEVEL X FOR 320.0; } } TRANSITION_LIST("CLK2") { NODE { REPEAT = 1; LEVEL 0 FOR 60.0; LEVEL 1 FOR 10.0; LEVEL 0 FOR 250.0; } } TRANSITION_LIST("CLK1") { NODE { REPEAT = 1; LEVEL 0 FOR 10.0; LEVEL 1 FOR 10.0; LEVEL 0 FOR 300.0; } } TRANSITION_LIST("CLK3") { NODE { REPEAT = 1; LEVEL 0 FOR 100.0; LEVEL 1 FOR 10.0; LEVEL 0 FOR 20.0; LEVEL 1 FOR 10.0; LEVEL 0 FOR 180.0; } } TRANSITION_LIST("CLK4") { NODE { REPEAT = 1; LEVEL 0 FOR 170.0; LEVEL 1 FOR 10.0; LEVEL 0 FOR 140.0; } } TRANSITION_LIST("d0[7]") { NODE { REPEAT = 1; LEVEL 0 FOR 320.0; } } TRANSITION_LIST("d0[6]") { NODE { REPEAT = 1; LEVEL 0 FOR 320.0; } } TRANSITION_LIST("d0[5]") { NODE { REPEAT = 1; LEVEL 0 FOR 320.0; } } TRANSITION_LIST("d0[4]") { NODE { REPEAT = 1; LEVEL 0 FOR 320.0; } } TRANSITION_LIST("d0[3]") { NODE { REPEAT = 1; LEVEL 0 FOR 320.0; } } TRANSITION_LIST("d0[2]") { NODE { REPEAT = 1; LEVEL 0 FOR 320.0; } } TRANSITION_LIST("d0[1]") { NODE { REPEAT = 1; LEVEL 0 FOR 50.0; LEVEL 1 FOR 40.0; LEVEL 0 FOR 230.0; } } TRANSITION_LIST("d0[0]") { NODE { REPEAT = 1; LEVEL 1 FOR 50.0; LEVEL 0 FOR 270.0; } } TRANSITION_LIST("led[7]") { NODE { REPEAT = 1; LEVEL X FOR 320.0; } } TRANSITION_LIST("led[6]") { NODE { REPEAT = 1; LEVEL X FOR 320.0; } } TRANSITION_LIST("led[5]") { NODE { REPEAT = 1; LEVEL X FOR 320.0; } } TRANSITION_LIST("led[4]") { NODE { REPEAT = 1; LEVEL X FOR 320.0; } } TRANSITION_LIST("led[3]") { NODE { REPEAT = 1; LEVEL X FOR 320.0; } } TRANSITION_LIST("led[2]") { NODE { REPEAT = 1; LEVEL X FOR 320.0; } } TRANSITION_LIST("led[1]") { NODE { REPEAT = 1; LEVEL X FOR 320.0; } } TRANSITION_LIST("led[0]") { NODE { REPEAT = 1; LEVEL X FOR 320.0; } } TRANSITION_LIST("SELECT[1]") { NODE { REPEAT = 1; LEVEL 0 FOR 120.0; LEVEL 1 FOR 200.0; } } TRANSITION_LIST("SELECT[0]") { NODE { REPEAT = 1; LEVEL 0 FOR 90.0; LEVEL 1 FOR 30.0; LEVEL 0 FOR 200.0; } } TRANSITION_LIST("we") { NODE { REPEAT = 1; LEVEL 0 FOR 100.0; LEVEL 1 FOR 10.0; LEVEL 0 FOR 210.0; } } DISPLAY_LINE { CHANNEL = "d0"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 0; TREE_LEVEL = 0; CHILDREN = 1, 2, 3, 4, 5, 6, 7, 8; } DISPLAY_LINE { CHANNEL = "d0[7]"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 1; TREE_LEVEL = 1; PARENT = 0; } DISPLAY_LINE { CHANNEL = "d0[6]"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 2; TREE_LEVEL = 1; PARENT = 0; } DISPLAY_LINE { CHANNEL = "d0[5]"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 3; TREE_LEVEL = 1; PARENT = 0; } DISPLAY_LINE { CHANNEL = "d0[4]"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 4; TREE_LEVEL = 1; PARENT = 0; } DISPLAY_LINE { CHANNEL = "d0[3]"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 5; TREE_LEVEL = 1; PARENT = 0; } DISPLAY_LINE { CHANNEL = "d0[2]"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 6; TREE_LEVEL = 1; PARENT = 0; } DISPLAY_LINE { CHANNEL = "d0[1]"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 7; TREE_LEVEL = 1; PARENT = 0; } DISPLAY_LINE { CHANNEL = "d0[0]"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 8; TREE_LEVEL = 1; PARENT = 0; } DISPLAY_LINE { CHANNEL = "SELECT"; EXPAND_STATUS = COLLAPSED; RADIX = Hexadecimal; TREE_INDEX = 9; TREE_LEVEL = 0; CHILDREN = 10, 11; } DISPLAY_LINE { CHANNEL = "SELECT[1]"; EXPAND_STATUS = COLLAPSED; RADIX = Hexadecimal; TREE_INDEX = 10; TREE_LEVEL = 1; PARENT = 9; } DISPLAY_LINE { CHANNEL = "SELECT[0]"; EXPAND_STATUS = COLLAPSED; RADIX = Hexadecimal; TREE_INDEX = 11; TREE_LEVEL = 1; PARENT = 9; } DISPLAY_LINE { CHANNEL = "CLK1"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 12; TREE_LEVEL = 0; } DISPLAY_LINE { CHANNEL = "CLK2"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 13; TREE_LEVEL = 0; } DISPLAY_LINE { CHANNEL = "CLK3"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 14; TREE_LEVEL = 0; } DISPLAY_LINE { CHANNEL = "we"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 15; TREE_LEVEL = 0; } DISPLAY_LINE { CHANNEL = "CLK4"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 16; TREE_LEVEL = 0; } DISPLAY_LINE { CHANNEL = "bus"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 17; TREE_LEVEL = 0; CHILDREN = 18, 19, 20, 21, 22, 23, 24, 25; } DISPLAY_LINE { CHANNEL = "bus[7]"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 18; TREE_LEVEL = 1; PARENT = 17; } DISPLAY_LINE { CHANNEL = "bus[6]"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 19; TREE_LEVEL = 1; PARENT = 17; } DISPLAY_LINE { CHANNEL = "bus[5]"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 20; TREE_LEVEL = 1; PARENT = 17; } DISPLAY_LINE { CHANNEL = "bus[4]"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 21; TREE_LEVEL = 1; PARENT = 17; } DISPLAY_LINE { CHANNEL = "bus[3]"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 22; TREE_LEVEL = 1; PARENT = 17; } DISPLAY_LINE { CHANNEL = "bus[2]"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 23; TREE_LEVEL = 1; PARENT = 17; } DISPLAY_LINE { CHANNEL = "bus[1]"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 24; TREE_LEVEL = 1; PARENT = 17; } DISPLAY_LINE { CHANNEL = "bus[0]"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 25; TREE_LEVEL = 1; PARENT = 17; } DISPLAY_LINE { CHANNEL = "led"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 26; TREE_LEVEL = 0; CHILDREN = 27, 28, 29, 30, 31, 32, 33, 34; } DISPLAY_LINE { CHANNEL = "led[7]"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 27; TREE_LEVEL = 1; PARENT = 26; } DISPLAY_LINE { CHANNEL = "led[6]"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 28; TREE_LEVEL = 1; PARENT = 26; } DISPLAY_LINE { CHANNEL = "led[5]"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 29; TREE_LEVEL = 1; PARENT = 26; } DISPLAY_LINE { CHANNEL = "led[4]"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 30; TREE_LEVEL = 1; PARENT = 26; } DISPLAY_LINE { CHANNEL = "led[3]"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 31; TREE_LEVEL = 1; PARENT = 26; } DISPLAY_LINE { CHANNEL = "led[2]"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 32; TREE_LEVEL = 1; PARENT = 26; } DISPLAY_LINE { CHANNEL = "led[1]"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 33; TREE_LEVEL = 1; PARENT = 26; } DISPLAY_LINE { CHANNEL = "led[0]"; EXPAND_STATUS = COLLAPSED; RADIX = Binary; TREE_INDEX = 34; TREE_LEVEL = 1; PARENT = 26; } TIME_BAR { TIME = 0; MASTER = TRUE; } ;