forked from Github_Repos/cvw
Added comport.setup to remind how to configure com port for xilinx fpga.
Added load-deadlock.tsm to trigger load operation deadlock.
This commit is contained in:
parent
acec56c27e
commit
bb11f5637c
3
fpga/comport.setup
Normal file
3
fpga/comport.setup
Normal file
@ -0,0 +1,3 @@
|
||||
sudo chown ross:ross /dev/ttyUSB1
|
||||
stty -F /dev/ttyUSB1 57600 cs8 -cstopb -parenb
|
||||
cat /dev/ttyUSB1
|
37
fpga/generator/load-deadlock.tsm
Normal file
37
fpga/generator/load-deadlock.tsm
Normal file
@ -0,0 +1,37 @@
|
||||
##################################################
|
||||
#
|
||||
# For info on creating trigger state machines:
|
||||
# 1) In the main Vivado menu bar, select
|
||||
# Window > Language Templates
|
||||
# 2) In the Templates window, select
|
||||
# Debug > Trigger State Machine
|
||||
# 3) Refer to the entry 'Info' for an overview
|
||||
# of the trigger state machine language.
|
||||
#
|
||||
# More information can be found in this document:
|
||||
#
|
||||
# Vivado Design Suite User Guide: Programming
|
||||
# and Debugging (UG908)
|
||||
#
|
||||
##################################################
|
||||
state state_reset:
|
||||
if(wallypipelinedsoc/hart/PCM == 64'hffffffff802719xx) then
|
||||
reset_counter $counter0;
|
||||
goto state_begin_count;
|
||||
#goto state_trigger;
|
||||
else
|
||||
goto state_reset;
|
||||
endif
|
||||
|
||||
state state_begin_count:
|
||||
if($counter0 == 16'h0264) then
|
||||
goto state_trigger;
|
||||
elseif(wallypipelinedsoc/hart/PCM == 64'hffffffff802719xx) then
|
||||
increment_counter $counter0;
|
||||
goto state_begin_count;
|
||||
else
|
||||
goto state_reset;
|
||||
endif
|
||||
|
||||
state state_trigger:
|
||||
trigger;
|
Loading…
Reference in New Issue
Block a user