works except that block memory can't be reinitialized after pwrup. Also, need to trim some latches out.