Ignore:
Timestamp:
Nov 12, 2014, 3:14:46 PM (10 years ago)
Author:
cfuguet
Message:

reconf: relax mesh size constraints

  • The mesh number of rows and columns can be any value between 1 and 16. It may or not be a power of 2.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/reconfiguration/platforms/tsar_generic_iob/scripts/arch.py

    r875 r876  
    7474
    7575    # parameters checking
    76     assert nb_procs <= 4
    77 
    78     assert ((x_size == 1) or (x_size == 2) or (x_size == 4) or (x_size == 8) or
    79             (x_size == 16))
    80 
    81     assert ((y_size == 1) or (y_size == 2) or (y_size == 4) or (y_size == 8) or
    82             (y_size == 16))
     76    assert (nb_procs <= (1 << P_WIDTH))
     77
     78    assert ((x_size >= 1) and (x_size <= (1 << X_WIDTH)))
     79
     80    assert ((y_size >= 1) and (y_size <= (1 << Y_WIDTH)))
    8381
    8482    assert ((nb_ttys >= 1) and (nb_ttys <= 16))
    8583
    8684    assert (((X_IO == 0) and (Y_IO == 0)) or
    87             ((X_IO == x_size-1) and (Y_IO == y_size-1)))
     85            ((X_IO == (x_size - 1)) and (Y_IO == (y_size - 1))))
    8886
    8987    platform_name = 'reconf-tsar_iob_%d_%d_%d' % (x_size, y_size, nb_procs)
Note: See TracChangeset for help on using the changeset viewer.