提交 2d3ae938 编写于 作者: 饶先宏's avatar 饶先宏

202109240605

上级 26920e33
......@@ -107,7 +107,7 @@ enum varupdatefunc {
};
#ifndef VARBITS
#define VARBITS 64
#define VARBITS 512
#endif
typedef struct sModuleVariable {
......
......@@ -682,7 +682,17 @@ ModuleVariable* varSHL(ModuleVariable* a, ModuleVariable* b);
ModuleVariable* varSHR(ModuleVariable* a, ModuleVariable* b);
ModuleVariable* varSAL(ModuleVariable* a, ModuleVariable* b);
ModuleVariable* varSAR(ModuleVariable* a, ModuleVariable* b);
ModuleVariable* varOr(ModuleVariable* a, ModuleVariable* b);
ModuleVariable* varOr(ModuleVariable* a, ModuleVariable* b)
{
int i;
ModuleVariable* temp;
temp = varTemp(max(a->width, b->width), 0);
for (i = 0; i < VARBITS / 64; i++) {
temp->data64[i] = a->data64[i] | b->data64[i];
}
return temp;
}
ModuleVariable* varXor(ModuleVariable* a, ModuleVariable* b);
ModuleVariable* varAnd(ModuleVariable* a, ModuleVariable* b);
ModuleVariable* varGT(ModuleVariable* a, ModuleVariable* b);
......
......@@ -241,7 +241,7 @@ static int hdl4sesim_hdl4se_simulator_SetReset(HOBJECT object, int reset)
return 0;
}
#define THREADCOUNT 3
#define THREADCOUNT 9
static int hdl4sesim_hdl4se_simulator_ClkTick(HOBJECT object)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册