ace_tb.sim 1.66 KB
Newer Older
lwc-tester committed
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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
if { $gui_mode } {
  add wave clk
  add wave reset
  add wave i_mode
  add wave i_dom_sep
  add wave o_ready
  add wave i_valid
  add wave i_data
  add wave i_padding
  add wave o_valid
  add wave o_data

  if { $sim_mode eq "PROG_MODE" } then {
  
  add wave -noupdate -divider -height 32 STUFF
  add wave /uut/u_ctl/state
  add wave /uut/u_ctl/o_ready
  add wave /uut/u_ctl/i_valid
  add wave /uut/u_dp/i_data
  add wave /uut/u_ctl/o_valid
  add wave /uut/u_dp/o_data

  add wave -noupdate -divider -height 32 DP
  add wave -radix binary /uut/u_dp/ctl_const
  add wave /uut/u_dp/i_data
  add wave /uut/u_dp/o_data
  add wave -radix binary /uut/u_dp/ctl_const
  add wave /uut/u_dp/lfsr_c_en
  add wave /uut/u_dp/lfsr_c_reset
  add wave /uut/u_dp/permoff
  add wave /uut/u_dp/endstep
  add wave /uut/u_dp/absorb
  add wave /uut/u_dp/replace
  add wave /uut/u_dp/output
  add wave /uut/u_dp/dsxor
  add wave /uut/u_dp/post_input
  add wave /uut/u_dp/pre_round
  add wave /uut/u_dp/post_round
  add wave /uut/u_dp/post_xor
  add wave /uut/u_dp/post_step_const
  add wave /uut/u_dp/post_linear
  add wave /uut/u_dp/ace_path
  add wave /uut/u_dp/ace_state

  add wave -noupdate -divider -height 32 CTL
  add wave /uut/u_ctl/state
  add wave -radix unsigned /uut/u_ctl/count
  add wave /uut/u_ctl/i_valid
  add wave /uut/u_ctl/o_valid
  add wave /uut/u_ctl/o_ready
  add wave -radix binary /uut/u_ctl/onehot
  add wave /uut/u_ctl/lfsr_c_reset
  add wave -radix binary /uut/u_ctl/i_mode
  add wave -radix binary /uut/u_ctl/i_dom_sep
  }

}

lwc-tester committed
59
vcd file uw_tmp/ace.vcd
lwc-tester committed
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
vcd add /ace_tb/uut/*

vcd add -r *
vcd on

run -all

vcd checkpoint
vcd off
vcd flush


if { $gui_mode } {
  wave zoom full
} else {  
  exit
}