aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth
diff options
context:
space:
mode:
Diffstat (limited to 'src/synth')
-rw-r--r--src/synth/synth-expr.adb11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/synth/synth-expr.adb b/src/synth/synth-expr.adb
index d13fc6cfc..d8645eeaf 100644
--- a/src/synth/synth-expr.adb
+++ b/src/synth/synth-expr.adb
@@ -479,6 +479,17 @@ package body Synth.Expr is
Synth_Uresize (Right, Get_Width (Left))),
Create_Res_Range (Left, L));
end;
+ when Iir_Predefined_Ieee_Numeric_Std_Sub_Uns_Nat =>
+ -- "-" (Unsigned, Natural)
+ declare
+ L : constant Net := Get_Net (Left);
+ begin
+ return Create_Value_Net
+ (Build_Dyadic (Build_Context, Id_Sub,
+ L,
+ Synth_Uresize (Right, Get_Width (Left))),
+ Create_Res_Range (Left, L));
+ end;
when Iir_Predefined_Ieee_Numeric_Std_Eq_Uns_Nat =>
-- "=" (Unsigned, Natural)
return Create_Value_Net