quit -sim

if {![file exists work]} {
     vlib work
}

vmap work work


vlog -incr ../../../../source/pll_qdr_sim.v ../../../../source/ODDR_XP.v ../../../../source/pipeline.v  ../../../../source/qdr2.v ../../../../source/qdr2_io.v  ../../../../testbench/k7r321882m_R04.v  ../../../../testbench/qdr2_tb.v

vsim work.qdr2_tb -L xp_vlg -l result.log

onerror {resume}
quietly WaveActivateNextPane {} 0
add wave -noupdate -format Logic /qdr2_tb/clock_178MHz_x2
add wave -noupdate -format Logic /qdr2_tb/clock_178MHz
add wave -noupdate -format Literal -radix hexadecimal /qdr2_tb/hostWD
add wave -noupdate -format Literal -radix hexadecimal /qdr2_tb/hostWP
add wave -noupdate -format Literal -radix hexadecimal /qdr2_tb/hostWA
add wave -noupdate -format Literal -radix hexadecimal /qdr2_tb/hostRA
add wave -noupdate -format Logic -radix hexadecimal /qdr2_tb/hostRN
add wave -noupdate -format Logic -radix hexadecimal /qdr2_tb/hostWN
add wave -noupdate -format Logic -radix hexadecimal /qdr2_tb/host16
add wave -noupdate -format Logic -radix hexadecimal /qdr2_tb/host08
add wave -noupdate -format Literal -radix hexadecimal /qdr2_tb/qdrQ
add wave -noupdate -format Literal -radix hexadecimal /qdr2_tb/qdrPQ
add wave -noupdate -format Literal -radix hexadecimal /qdr2_tb/hostRQ
add wave -noupdate -format Literal -radix hexadecimal /qdr2_tb/hostPERR
add wave -noupdate -format Logic -radix hexadecimal /qdr2_tb/qdrK
add wave -noupdate -format Logic -radix hexadecimal /qdr2_tb/qdrKN
add wave -noupdate -format Logic -radix hexadecimal /qdr2_tb/qdrC
add wave -noupdate -format Logic -radix hexadecimal /qdr2_tb/qdrCN
add wave -noupdate -format Logic -radix hexadecimal /qdr2_tb/qdrRN
add wave -noupdate -format Logic -radix hexadecimal /qdr2_tb/qdrWN
add wave -noupdate -format Literal -radix hexadecimal /qdr2_tb/qdrSA
add wave -noupdate -format Literal -radix hexadecimal /qdr2_tb/qdrD
add wave -noupdate -format Literal -radix hexadecimal /qdr2_tb/qdrPD
add wave -noupdate -format Literal -radix hexadecimal /qdr2_tb/qdrBWN
add wave -noupdate -format Literal -radix hexadecimal /qdr2_tb/hostPERR
add wave -noupdate -format Logic -radix hexadecimal /qdr2_tb/qdrCQ
add wave -noupdate -divider temp
add wave -noupdate -divider other
TreeUpdate [SetDefaultTree]
WaveRestoreCursors {{Cursor 2} {310639 ps} 0} {{Cursor 4} {141978 ps} 0}
WaveRestoreZoom {310642 ps} {356402 ps}
configure wave -namecolwidth 150
configure wave -valuecolwidth 100
configure wave -justifyvalue left
configure wave -signalnamewidth 0
configure wave -snapdistance 10
configure wave -datasetprefix 0
configure wave -rowmargin 4
configure wave -childrowmargin 2
configure wave -gridoffset 0
configure wave -gridperiod 1
configure wave -griddelta 40
configure wave -timeline 0

run -all
quit
