disasm/sim: changed interface, added readline to sim
[calu.git] / 3b_sim / cdat.hpp
index e9f88f6f93156657238620d78c951d4a469f56c8..39ea074a4e251a420d162a220c740369fef4c4c2 100644 (file)
@@ -4,9 +4,10 @@
 #include <string>
 #include <sstream>
 
-typedef int CDat;
+typedef __UINT32_TYPE__ CDat;
+typedef __UINT64_TYPE__ CDatd;
 
 #define BIT_LEN 32
-
-//static_assert(sizeof(CDat) == 4, "The size of the datatype for int is NOT 4 bytes (32 Bit!)");
+static_assert(sizeof(CDat) == 4, "The size of the datatype for int is NOT 4 bytes (32 Bit!)");
+static_assert(sizeof(CDatd) > 4, "The size of the datatype for double int is NOT bigger than 4 bytes (32 Bit!)");
 #endif