00001 /* 00002 Permission is hereby granted, free of charge, to any person 00003 obtaining a copy of this software and associated documentation 00004 files (the "Software"), to deal in the Software without 00005 restriction, including without limitation the rights to use, 00006 copy, modify, merge, publish, distribute, sublicense, and/or sell 00007 copies of the Software, and to permit persons to whom the 00008 Software is furnished to do so, subject to the following 00009 conditions: 00010 00011 The above copyright notice and this permission notice shall be 00012 included in all copies or substantial portions of the Software. 00013 00014 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00015 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 00016 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 00017 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 00018 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 00019 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 00020 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 00021 OTHER DEALINGS IN THE SOFTWARE. 00022 */ 00023 #include <string.h> 00024 #include <stdio.h> 00025 #include <stdlib.h> 00026 #include <stdarg.h> 00027 #include "types.h" 00028 #include "globals.h" 00029 #include "errors.h" 00030 #include "netlist_utils.h" 00031 #include "odin_util.h" 00032 #include "netlist_optimizations.h" 00033 #include "multipliers.h" 00034 #include "memories.h" 00035 00036 /*------------------------------------------------------------------------ 00037 * (function: netlist_optimizations_top) 00038 *----------------------------------------------------------------------*/ 00039 void netlist_optimizations_top(netlist_t *netlist) 00040 { 00041 #ifdef VPR6 00042 /* Perform a splitting of the multipliers for hard block mults */ 00043 iterate_multipliers(netlist); 00044 clean_multipliers(); 00045 00046 /* Perform a splitting of any hard block memories */ 00047 iterate_memories(netlist); 00048 clean_memories(); 00049 #endif 00050 } 00051