Coarse-grained reconfigurable arrays