mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-17 00:44:40 -04:00
adds an error message if generic circuits are exported to a HDL
This commit is contained in:
parent
6e9b4fe922
commit
665ae6860e
@ -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"))
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user