]> AND Private Git Repository - blast.git/blob - SpecialBlock.cpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
added clk/rst link when creating a block
[blast.git] / SpecialBlock.cpp
1 #include "SpecialBlock.h"\r
2 \r
3 SpecialBlock::SpecialBlock(SpecialType _type, GroupBlock* _parent, ReferenceBlock* _reference, bool createIfaces) throw(Exception) : FunctionalBlock(_parent, _reference, createIfaces) {\r
4   type = _type;  \r
5 }\r
6 \r
7 SpecialBlock::~SpecialBlock() {\r
8 }\r
9 \r
10 void SpecialBlock::checkInputPatternCompatibility() throw(Exception) {\r
11   try {\r
12     switch(type) {\r
13     case ClockConvert :\r
14       checkInputPatternCompatibilityClockConvert();\r
15       break;\r
16     case ClkRstGen:\r
17       checkInputPatternCompatibilityClkRstGen();\r
18       break;\r
19     }\r
20   }\r
21   catch(Exception e) {\r
22     throw (e);\r
23   }\r
24 }\r
25 \r
26 void SpecialBlock::computeOutputPattern(int nbExec) throw(Exception) {\r
27   try {\r
28     switch(type) {\r
29     case ClockConvert :\r
30       computeOutputPatternClockConvert(nbExec);\r
31       break;\r
32     case ClkRstGen:\r
33       computeOutputPatternClkRstGen(nbExec);\r
34       break;\r
35     }\r
36   }\r
37   catch(Exception e) {\r
38     throw (e);\r
39   }\r
40 }\r
41 \r
42 void SpecialBlock::checkInputPatternCompatibilityClockConvert() throw(Exception) {\r
43 }\r
44 void SpecialBlock::computeOutputPatternClockConvert(int nbExec) throw(Exception) {\r
45 }\r
46 \r
47 \r
48 void SpecialBlock::checkInputPatternCompatibilityClkRstGen() throw(Exception) {\r
49 }\r
50 void SpecialBlock::computeOutputPatternClkRstGen(int nbExec) throw(Exception) {\r
51 }\r