add some debug output for sort_demo
use smaller size in simulation of sort_demo
add helpers for testing hardware cores in simulation