Changeset 101 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Update_Prediction_Table/SelfTest/src/test.cpp
- Timestamp:
- Jan 15, 2009, 6:19:08 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Update_Prediction_Table/SelfTest/src/test.cpp
r98 r101 143 143 ALLOC1_SC_SIGNAL( in_EVENT_DEPTH ," in_EVENT_DEPTH ",Tdepth_t ,_param->_nb_context); 144 144 145 ALLOC1_SC_SIGNAL(out_DEPTH_VAL ,"out_DEPTH_VAL ",Tcontrol_t ,_param->_nb_context); 145 146 ALLOC1_SC_SIGNAL(out_DEPTH_CURRENT ,"out_DEPTH_CURRENT ",Tdepth_t ,_param->_nb_context); 146 147 ALLOC1_SC_SIGNAL(out_DEPTH_MIN ,"out_DEPTH_MIN ",Tdepth_t ,_param->_nb_context); 147 148 ALLOC1_SC_SIGNAL(out_DEPTH_MAX ,"out_DEPTH_MAX ",Tdepth_t ,_param->_nb_context); 149 ALLOC1_SC_SIGNAL(out_DEPTH_FULL ,"out_DEPTH_FULL ",Tcontrol_t ,_param->_nb_context); 148 150 149 151 /******************************************************** … … 239 241 INSTANCE1_SC_SIGNAL(_Update_Prediction_Table,out_DEPTH_CURRENT ,_param->_nb_context); 240 242 INSTANCE1_SC_SIGNAL(_Update_Prediction_Table,out_DEPTH_MIN ,_param->_nb_context); 243 INSTANCE1_SC_SIGNAL(_Update_Prediction_Table,out_DEPTH_MAX ,_param->_nb_context); 241 244 } 242 INSTANCE1_SC_SIGNAL(_Update_Prediction_Table,out_DEPTH_MAX ,_param->_nb_context); 245 INSTANCE1_SC_SIGNAL(_Update_Prediction_Table,out_DEPTH_VAL ,_param->_nb_context); 246 INSTANCE1_SC_SIGNAL(_Update_Prediction_Table,out_DEPTH_FULL ,_param->_nb_context); 243 247 244 248 msg(_("<%s> : Start Simulation ............\n"),name.c_str()); … … 373 377 374 378 if (_param->_have_port_depth) 379 { 375 380 TEST(Tdepth_t,out_DEPTH_MIN [context]->read(), upt_bottom [context]); 376 381 TEST(Tdepth_t,out_DEPTH_MAX [context]->read(), upt_top [context]); 377 382 } 378 383 SC_START(0); // fct melay 379 384 … … 404 409 405 410 if (_param->_have_port_depth) 411 { 406 412 TEST(Tdepth_t,out_DEPTH_MIN [context]->read(), upt_bottom [context]); 407 413 TEST(Tdepth_t,out_DEPTH_MAX [context]->read(), upt_top [context]); 414 } 408 415 } 409 416 } … … 462 469 463 470 if (_param->_have_port_depth) 471 { 464 472 TEST(Tdepth_t,out_DEPTH_MIN [context]->read(), upt_bottom [context]); 465 473 TEST(Tdepth_t,out_DEPTH_MAX [context]->read(), upt_top [context]); 474 } 466 475 } 467 476 } … … 490 499 491 500 if (_param->_have_port_depth) 501 { 492 502 TEST(Tdepth_t,out_DEPTH_MIN [context]->read(), upt_bottom [context]); 493 503 TEST(Tdepth_t,out_DEPTH_MAX [context]->read(), upt_top [context]); 504 } 494 505 495 506 SC_START(0); … … 516 527 517 528 if (_param->_have_port_depth) 529 { 518 530 TEST(Tdepth_t,out_DEPTH_MIN [context]->read(), upt_bottom [context]); 519 531 TEST(Tdepth_t,out_DEPTH_MAX [context]->read(), upt_top [context]); 532 } 520 533 } 521 534 } … … 539 552 540 553 // if (_param->_have_port_depth) 554 // { 541 555 // TEST(Tdepth_t,out_DEPTH_MIN [context]->read(), upt_bottom [context]); 542 556 // TEST(Tdepth_t,out_DEPTH_MAX [context]->read(), upt_top [context]); 557 // } 543 558 544 559 SC_START(0); … … 654 669 655 670 if (_param->_have_port_depth) 671 { 656 672 TEST(Tdepth_t,out_DEPTH_MIN [context]->read(), upt_bottom [context]); 657 673 TEST(Tdepth_t,out_DEPTH_MAX [context]->read(), upt_top [context]); 658 674 } 659 675 SC_START(0); // fct melay 660 676 … … 685 701 686 702 if (_param->_have_port_depth) 703 { 687 704 TEST(Tdepth_t,out_DEPTH_MIN [context]->read(), upt_bottom [context]); 688 705 TEST(Tdepth_t,out_DEPTH_MAX [context]->read(), upt_top [context]); 706 } 689 707 } 690 708 } … … 764 782 765 783 if (_param->_have_port_depth) 784 { 766 785 TEST(Tdepth_t,out_DEPTH_MIN [context]->read(), upt_bottom [context]); 767 786 TEST(Tdepth_t,out_DEPTH_MAX [context]->read(), upt_top [context]); 787 } 768 788 } 769 789 } … … 793 813 794 814 if (_param->_have_port_depth) 815 { 795 816 TEST(Tdepth_t,out_DEPTH_MIN [context]->read(), upt_bottom [context]); 796 817 TEST(Tdepth_t,out_DEPTH_MAX [context]->read(), upt_top [context]); 797 818 } 798 819 SC_START(0); 799 820 … … 819 840 820 841 if (_param->_have_port_depth) 842 { 821 843 TEST(Tdepth_t,out_DEPTH_MIN [context]->read(), upt_bottom [context]); 822 844 TEST(Tdepth_t,out_DEPTH_MAX [context]->read(), upt_top [context]); 845 } 823 846 } 824 847 } … … 1013 1036 1014 1037 if (_param->_have_port_depth) 1038 { 1015 1039 TEST(Tdepth_t,out_DEPTH_MIN [context]->read(), upt_bottom [context]); 1016 1040 TEST(Tdepth_t,out_DEPTH_MAX [context]->read(), upt_top [context]); 1017 1041 } 1018 1042 SC_START(0); // fct melay 1019 1043 … … 1044 1068 1045 1069 if (_param->_have_port_depth) 1070 { 1046 1071 TEST(Tdepth_t,out_DEPTH_MIN [context]->read(), upt_bottom [context]); 1047 1072 TEST(Tdepth_t,out_DEPTH_MAX [context]->read(), upt_top [context]); 1073 } 1048 1074 } 1049 1075 } … … 1123 1149 1124 1150 if (_param->_have_port_depth) 1151 { 1125 1152 TEST(Tdepth_t,out_DEPTH_MIN [context]->read(), upt_bottom [context]); 1126 1153 TEST(Tdepth_t,out_DEPTH_MAX [context]->read(), upt_top [context]); 1154 } 1127 1155 } 1128 1156 } … … 1152 1180 1153 1181 if (_param->_have_port_depth) 1182 { 1154 1183 TEST(Tdepth_t,out_DEPTH_MIN [context]->read(), upt_bottom [context]); 1155 1184 TEST(Tdepth_t,out_DEPTH_MAX [context]->read(), upt_top [context]); 1156 1185 } 1157 1186 SC_START(0); 1158 1187 … … 1178 1207 1179 1208 if (_param->_have_port_depth) 1209 { 1180 1210 TEST(Tdepth_t,out_DEPTH_MIN [context]->read(), upt_bottom [context]); 1181 1211 TEST(Tdepth_t,out_DEPTH_MAX [context]->read(), upt_top [context]); 1212 } 1182 1213 } 1183 1214 } … … 1450 1481 1451 1482 if (_param->_have_port_depth) 1483 { 1452 1484 TEST(Tdepth_t,out_DEPTH_MIN [context]->read(), upt_bottom [context]); 1453 1485 TEST(Tdepth_t,out_DEPTH_MAX [context]->read(), upt_top [context]); 1454 1486 } 1455 1487 SC_START(0); // fct melay 1456 1488 … … 1481 1513 1482 1514 if (_param->_have_port_depth) 1483 TEST(Tdepth_t,out_DEPTH_MIN [context]->read(), upt_bottom [context]); 1515 { 1516 TEST(Tdepth_t,out_DEPTH_MIN [context]->read(), upt_bottom [context]); 1484 1517 TEST(Tdepth_t,out_DEPTH_MAX [context]->read(), upt_top [context]); 1518 } 1485 1519 } 1486 1520 } … … 1541 1575 1542 1576 if (_param->_have_port_depth) 1543 TEST(Tdepth_t,out_DEPTH_MIN [context]->read(), upt_bottom [context]); 1577 { 1578 TEST(Tdepth_t,out_DEPTH_MIN [context]->read(), upt_bottom [context]); 1544 1579 TEST(Tdepth_t,out_DEPTH_MAX [context]->read(), upt_top [context]); 1580 } 1545 1581 } 1546 1582 } … … 1593 1629 1594 1630 if (_param->_have_port_depth) 1631 { 1595 1632 TEST(Tdepth_t,out_DEPTH_MIN [context]->read(), upt_bottom [context]); 1596 1633 TEST(Tdepth_t,out_DEPTH_MAX [context]->read(), upt_top [context]); 1597 1634 } 1598 1635 SC_START(0); // fct melay 1599 1636 … … 1624 1661 1625 1662 if (_param->_have_port_depth) 1626 TEST(Tdepth_t,out_DEPTH_MIN [context]->read(), upt_bottom [context]); 1663 { 1664 TEST(Tdepth_t,out_DEPTH_MIN [context]->read(), upt_bottom [context]); 1627 1665 TEST(Tdepth_t,out_DEPTH_MAX [context]->read(), upt_top [context]); 1666 } 1628 1667 } 1629 1668 } … … 1677 1716 1678 1717 if (_param->_have_port_depth) 1718 { 1679 1719 TEST(Tdepth_t,out_DEPTH_MIN [context]->read(), upt_bottom [context]); 1680 1720 TEST(Tdepth_t,out_DEPTH_MAX [context]->read(), upt_top [context]); 1681 1721 } 1722 1682 1723 SC_START(0); 1683 1724 … … 1711 1752 1712 1753 if (_param->_have_port_depth) 1754 { 1713 1755 TEST(Tdepth_t,out_DEPTH_MIN [context]->read(), upt_bottom [context]); 1714 1756 TEST(Tdepth_t,out_DEPTH_MAX [context]->read(), upt_top [context]); 1757 } 1715 1758 } 1716 1759 } … … 1738 1781 1739 1782 if (_param->_have_port_depth) 1783 { 1740 1784 TEST(Tdepth_t,out_DEPTH_MIN [context]->read(), upt_bottom [context]); 1741 1785 TEST(Tdepth_t,out_DEPTH_MAX [context]->read(), upt_top [context]); 1742 1786 } 1743 1787 SC_START(0); 1744 1788 … … 1772 1816 1773 1817 if (_param->_have_port_depth) 1818 { 1774 1819 TEST(Tdepth_t,out_DEPTH_MIN [context]->read(), upt_bottom [context]); 1775 1820 TEST(Tdepth_t,out_DEPTH_MAX [context]->read(), upt_top [context]); 1821 } 1776 1822 } 1777 1823 } … … 2176 2222 2177 2223 // ~~~~~[ Interface : "depth" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2224 delete [] out_DEPTH_VAL; 2178 2225 delete [] out_DEPTH_CURRENT; 2179 2226 delete [] out_DEPTH_MIN; 2180 2227 delete [] out_DEPTH_MAX; 2228 delete [] out_DEPTH_FULL; 2181 2229 2182 2230 #endif
Note: See TracChangeset
for help on using the changeset viewer.