wage_tb.sim 2.2 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
-- This work is licensed under a Creative Commons
-- Attribution-NonCommercial-ShareAlike 4.0 International License.
-- http://creativecommons.org/licenses/by-nc-sa/4.0

-- Mark D. Aagaard
-- Riham AlTawy
-- Guang Gong
-- Kalikinkar Mandal
-- Raghvendra Rohit
-- Marat Sattarov
-- Nusa Zidaric
-- http://uwaterloo.ca/communications-security-lab/lwc/wage


-- This is a human-readable summary of (and not a substitute for) the license. 
-- You are free to:

--     Share:  copy and redistribute the material in any medium or format
--     Adapt:  remix, transform, and build upon the material

--     The licensor cannot revoke these freedoms as long as you follow
--     the license terms.

-- Under the following terms:

--     Attribution — You must give appropriate credit, provide a link to
--     the license, and indicate if changes were made. You may do so in
--     any reasonable manner, but not in any way that suggests the
--     licensor endorses you or your use.

--     NonCommercial — You may not use the material for commercial
--     purposes.

--     ShareAlike — If you remix, transform, or build upon the material,
--     you must distribute your contributions under the same license as
--     the original.

--     No additional restrictions — You may not apply legal terms or
--     technological measures that legally restrict others from doing
--     anything the license permits.

lwc-tester committed
42 43 44 45 46 47 48 49 50 51 52 53
if { $gui_mode } {
  add wave clk
  add wave reset
  add wave -noupdate -divider -height 32 "WAGE"
  add wave i_dom_sep
  add wave i_valid
  add wave i_data
  add wave o_valid
  add wave o_data
  if { $sim_mode eq "PROG_MODE" } then {
  add wave /uut/u_dp/wage_state/sa
  add wave wage_state_a_2
lwc-tester committed
54 55 56
  add wave uut/u_dp/lfsrconst/o_const
  add wave -radix unsigned uut/u_ctl/count
  add wave uut/u_ctl/lfsr_c_reset
lwc-tester committed
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
  }


  add wave -noupdate -divider -height 32 "WAGE CONTROL"  
  add wave i_padding
  add wave i_mode
  if { $sim_mode eq "PROG_MODE" } then {
    add wave /uut/ctl_control
  }
  add wave tb_state_2

  

  if { $sim_mode eq "PROG_MODE" } then {


  }

}

lwc-tester committed
77
vcd file uw_tmp/wage.vcd
lwc-tester committed
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
vcd add /wage_tb/uut/*

vcd add -r *
vcd on

run -all

vcd checkpoint
vcd off
vcd flush

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