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

Private GIT Repository
finished VHDL gen. (but have to test further
[blast.git] / FunctionalInterface.cpp
index 495d60e9b7f31182ed924b7af34d5a4d56a66619..1237e744a9416423d2972d5823a7991672052c17 100644 (file)
@@ -17,7 +17,9 @@ FunctionalInterface::FunctionalInterface(AbstractBlock* _owner, ReferenceInterfa
   reference = _reference;\r
 \r
   name = reference->getName();\r
   reference = _reference;\r
 \r
   name = reference->getName();\r
-  width = reference->getWidth();\r
+  type = reference->getType();\r
+  endianess = reference->getEndianess();\r
+  width = reference->getWidthString();\r
   direction = reference->getDirection();\r
   purpose = reference->getPurpose();  \r
   connectedFrom = NULL;  \r
   direction = reference->getDirection();\r
   purpose = reference->getPurpose();  \r
   connectedFrom = NULL;  \r
@@ -101,7 +103,8 @@ bool FunctionalInterface::canConnectTo(AbstractInterface *iface) {
   */\r
   if (direction == Input) return false;\r
   if (iface->isReferenceInterface()) return false;\r
   */\r
   if (direction == Input) return false;\r
   if (iface->isReferenceInterface()) return false;\r
-  if (iface->getConnectedFrom() != NULL) return false;\r
+  ConnectedInterface* connIface = AI_TO_CON(iface);\r
+  if (connIface->getConnectedFrom() != NULL) return false;\r
   // first case: interface of blocks within the same group\r
   if (getOwner()->getParent() == iface->getOwner()->getParent()) {\r
 \r
   // first case: interface of blocks within the same group\r
   if (getOwner()->getParent() == iface->getOwner()->getParent()) {\r
 \r