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

202108061558 cnn完成

上级 1f368421
......@@ -198,12 +198,26 @@ static int hdl4sesim_collect_module(HOBJECT module, sHDL4SESim* pobj)
static int hdl4sesim_hdl4se_simulator_SetTopModule(HOBJECT object, HOBJECT topmodule)
{
int i, j;
sHDL4SESim* pobj;
void* a[1024];
pobj = (sHDL4SESim*)objectThis(object);
objectQueryInterface(topmodule, IID_HDL4SEMODULE, (const void**)&pobj->topmodule);
hdl4semoduleTraversal(pobj->topmodule, hdl4sesim_collect_module, pobj);
for (i = 0; i < 16; i++) {
for (j = 0; j < 64; j++) {
int k;
k = j * 16 + i;
if (k < pobj->multithreadmodules.itemcount)
a[k] = pobj->singlethreadmodules.array[k];
}
}
for (i = 0; i < pobj->multithreadmodules.itemcount; i++) {
pobj->singlethreadmodules.array[i] = a[i];
}
/*连接topmodule到sim模块,0.wClk, 1.nwReset*/
hdl4se_module_ConnectInput(&pobj->topmodule->data, 0, object, 0);
hdl4se_module_ConnectInput(&pobj->topmodule->data, 1, object, 1);
......@@ -218,7 +232,7 @@ static int hdl4sesim_hdl4se_simulator_SetReset(HOBJECT object, int reset)
return 0;
}
#define THREADCOUNT 9
#define THREADCOUNT 3
static int hdl4sesim_hdl4se_simulator_ClkTick(HOBJECT object)
{
......@@ -273,6 +287,17 @@ IHDL4SESimulator** hdl4sesimCreateSimulator()
}
/*
i5 6200U 2.3G
threadcount=4
clocks: 1867776, TSPD=1361.352770cps, LSPD=2048.000000cps
softmax_168 complete
0.4901 n03085013 computer keyboard, keypad
0.1591 n04264628 space bar
0.0543 n04074963 remote control, remote
0.0439 n03832673 notebook, notebook computer
0.0356 n04505470 typewriter keyboard
clocks: 1884160, TSPD=1359.422799cps, LSPD=1170.285714cps
threadcount=3
clocks : 1867776, TSPD = 1552.598504cps, LSPD = 2048.000000cps
softmax_168 complete
......@@ -283,6 +308,17 @@ softmax_168 complete
0.0356 n04505470 typewriter keyboard
clocks : 1884160, TSPD = 1550.748971cps, LSPD = 1365.333333cps
ordered:
clocks: 1867776, TSPD=1312.562193cps, LSPD=1092.266667cps
softmax_168 complete
0.4901 n03085013 computer keyboard, keypad
0.1591 n04264628 space bar
0.0543 n04074963 remote control, remote
0.0439 n03832673 notebook, notebook computer
0.0356 n04505470 typewriter keyboard
clocks: 1884160, TSPD=1312.089136cps, LSPD=1260.307692cps
threadcount=2
clocks: 1867776, TSPD=1562.992469cps, LSPD=1365.333333cps
softmax_168 complete
......@@ -303,7 +339,7 @@ softmax_168 complete
0.0356 n04505470 typewriter keyboard
clocks: 1884160, TSPD=993.755274cps, LSPD=1024.000000cps
i9
i9 10900 32G
threadcount=32
clocks: 1867776, TSPD=8768.901408cps, LSPD=8192.000000cps
softmax_168 complete
......@@ -434,7 +470,7 @@ softmax_168 complete
0.0356 n04505470 typewriter keyboard
clocks: 1884160, TSPD=4529.230769cps, LSPD=5461.333333cps
threadcount=1
threadcount=0
clocks: 1867776, TSPD=2551.606557cps, LSPD=2730.666667cps
softmax_168 complete
0.4901 n03085013 computer keyboard, keypad
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册