adds an error message if generic circuits are exported to a HDL

This commit is contained in:
hneemann 2019-06-29 18:04:35 +02:00
parent 6e9b4fe922
commit 665ae6860e
3 changed files with 5 additions and 0 deletions

View File

@ -80,6 +80,9 @@ public class HDLCircuit implements Iterable<HDLNode>, HDLModel.BitProvider, Prin
* @throws NodeException NodeException
*/
public HDLCircuit(Circuit circuit, String elementName, HDLModel c, HDLClockIntegrator clockIntegrator) throws PinException, HDLException, NodeException {
if (circuit.getAttributes().get(Keys.IS_GENERIC))
throw new HDLException(Lang.get("err_genericCircuitsAreNotYetSupported"));
this.elementName = elementName;
if (elementName.toLowerCase().endsWith(".dig"))

View File

@ -1024,6 +1024,7 @@ Sind evtl. die Namen der Variablen nicht eindeutig?</string>
<string name="err_NameOfIOIsInvalidOrNotUnique_N">Der Signalname "{0}" ist ungültig oder mehrfach verwendet!</string>
<string name="err_substitutingError">Fehler bei der Substitution von Elementen für die Analyse.</string>
<string name="err_parsingGenericsCode">Fehler bei der Analyse des für den Code der generischen Schaltung.</string>
<string name="err_genericCircuitsAreNotYetSupported">Generische Schaltungen werden noch nicht unterstützt.</string>
<string name="key_AddrBits">Adress-Bits</string><!-- ROM, RAMDualPort, RAMSinglePort, RAMSinglePortSel, EEPROM -->
<string name="key_AddrBits_tt">Anzahl der Adress-Bits, die verwendet werden.</string>

View File

@ -1016,6 +1016,7 @@
<string name="err_NameOfIOIsInvalidOrNotUnique_N">The signal name "{0}" is invalid or used multiple times!</string>
<string name="err_substitutingError">Error when substituting components for the analysis.</string>
<string name="err_parsingGenericsCode">Error while evaluating a generic code fragment.</string>
<string name="err_genericCircuitsAreNotYetSupported">Generic circuits are not yet supported.</string>
<string name="key_AddrBits">Address Bits</string><!-- ROM, RAMDualPort, RAMSinglePort, RAMSinglePortSel, EEPROM -->
<string name="key_AddrBits_tt">Number of address bits used.</string>