Commit 2a481779 authored by Ille, Ondrej, Ing.'s avatar Ille, Ondrej, Ing.

Changed RX Buffer unit test to cover continous storing.

Data overrun still not covered, will be covered in
separate task.
parent ad03e072
This diff is collapsed.
......@@ -51,20 +51,54 @@ add_system_waves
#Add circuit specific signals
add wave -noupdate -divider -height 20 "DUT inputs (generated)"
add wave -label "CAN Frame to store into RX Buffer" $TCOMP/input_frame
add wave -group "Input metadata" \
-label "Frame Format" $TCOMP/rec_frame_type_in \
-label "Identifier type" $TCOMP/rec_ident_type_in \
-label "DLC" $TCOMP/rec_dlc_in \
-label "RTR" $TCOMP/rec_is_rtr \
-label "BRS" $TCOMP/rec_brs \
-label "ESI" $TCOMP/rec_esi
add wave -label "Identifier" $TCOMP/rec_ident_in
add wave -group "Commands from CAN Core" \
-label "Store metadata" $TCOMP/store_metadata \
-label "Store data" $TCOMP/store_data \
-label "Store data word" -hexadecimal $TCOMP/store_data_word \
-label "Receive valid" $TCOMP/rec_message_valid \
-label "Receive abort" $TCOMP/rec_abort \
-label "SOF pulse" $TCOMP/sof_pulse
add wave -label "Timestamp" -unsigned $TCOMP/timestamp
add wave -label "Erase Rx buffer" $TCOMP/rx_buffer_comp/drv_erase_rx
add wave -label "Read word" $TCOMP/rx_buffer_comp/drv_read_start
add wave -label "Read start" $TCOMP/rx_buffer_comp/drv_read_start
add wave -noupdate -divider -height 20 "RX Buffer status signals"
add wave -label "Buffer full" $TCOMP/rx_full_b
add wave -label "Buffer empty" $TCOMP/rx_empty_b
add wave -label "Stored frames" -unsigned $TCOMP/rx_message_count_b
add wave -label "Free 32bit words" -unsigned $TCOMP/rx_mem_free_b
add wave -label "Read pointer" -unsigned $TCOMP/rx_read_pointer_pos_b
add wave -label "Write pointer" -unsigned $TCOMP/rx_write_pointer_pos_b
add wave -label "Frame discarded" $TCOMP/rx_message_disc_b
add wave -label "Output word" -hexadecimal $TCOMP/rx_read_buff_b
add wave -label "Buffer full" $TCOMP/rx_full
add wave -label "Buffer empty" $TCOMP/rx_empty
add wave -label "Stored frames" -unsigned $TCOMP/rx_message_count
add wave -label "Free 32bit words" -unsigned $TCOMP/rx_mem_free
add wave -label "Read pointer" -unsigned $TCOMP/rx_read_pointer_pos
add wave -label "Write pointer" -unsigned $TCOMP/rx_write_pointer_pos
add wave -label "Output word" -hexadecimal $TCOMP/rx_read_buff
add wave -noupdate -divider -height 20 "RX Buffer internal signals"
add wave -label "RX Buffer FSM" -hexadecimal $TCOMP/rx_Buffer_comp/rx_fsm
add wave -label "Read frame counter" -hexadecimal $TCOMP/rx_Buffer_comp/read_frame_counter
add wave -label "Increment Read" -hexadecimal $TCOMP/rx_Buffer_comp/read_increment
add wave -label "Increment RAW Write" -hexadecimal $TCOMP/rx_Buffer_comp/write_raw_increment
add wave -label "Write extra timestamp" -hexadecimal $TCOMP/rx_Buffer_comp/write_extra_ts
add wave -label "Is free word" -hexadecimal $TCOMP/rx_Buffer_comp/is_free_word
add wave -label "Overrun condition" -hexadecimal $TCOMP/rx_Buffer_comp/overrun_condition
add wave -label "Write pointer extra timestamp" -hexadecimal $TCOMP/rx_Buffer_comp/write_pointer_extra_ts
add wave -label "Write pointer RAW" -hexadecimal $TCOMP/rx_Buffer_comp/write_pointer_raw
add wave -label "Memory write pointer" -hexadecimal $TCOMP/rx_Buffer_comp/memory_write_pointer
add wave -label "Captured timestamp" -hexadecimal $TCOMP/rx_Buffer_comp/timestamp_capture
add wave -label "Commit RX Frame" -hexadecimal $TCOMP/rx_Buffer_comp/commit_rx_frame
add wave -label "Data overrun internal" -hexadecimal $TCOMP/rx_Buffer_comp/data_overrun_int
add wave -label "Mem free raw" $TCOMP/rx_Buffer_comp/rx_mem_free_raw
add wave -noupdate -divider -height 20 "Testbench internal signals"
add wave -label "Input memory full" $TCOMP/in_mem_full
......@@ -77,7 +111,6 @@ add wave -label "???InMem=OutMem???" $TCOMP/cons_check/cons_res
add wave -noupdate -divider -height 20 "Internal DUT signals"
add wave -label "RX Buffer content" $TCOMP/rx_Buffer_comp/memory
add wave -label "RX Buffer memory row valid" $TCOMP/rx_Buffer_comp/memory_valid
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment