Changeset 625
- Timestamp:
- Jan 30, 2014, 5:42:51 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/platforms/tsar_generic_xbar/top.cpp
r619 r625 950 950 // trace proc[debug_proc_id] 951 951 size_t l = debug_proc_id % NB_PROCS_MAX ; 952 size_t y = (debug_proc_id / NB_PROCS_MAX)% YMAX ;953 size_t x = debug_proc_id / (YMAX * NB_PROCS_MAX);952 size_t y = (debug_proc_id / NB_PROCS_MAX) % YMAX ; 953 size_t x = (debug_proc_id / ((1 << y_width) * NB_PROCS_MAX)) % XMAX ; 954 954 955 955 std::ostringstream proc_signame; … … 1012 1012 1013 1013 // trace external peripherals 1014 size_t io_x = cluster_io_id / YMAX;1015 size_t io_y = cluster_io_id % YMAX;1016 1014 size_t io_x = cluster_io_id >> y_width; 1015 size_t io_y = cluster_io_id & ((1 << x_width) - 1); 1016 1017 1017 clusters[io_x][io_y]->brom->print_trace(); 1018 1018 clusters[io_x][io_y]->wt_brom->print_trace();
Note: See TracChangeset
for help on using the changeset viewer.