Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
饶先宏
hdl4se
提交
938a3bda
H
hdl4se
项目概览
饶先宏
/
hdl4se
通知
12
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hdl4se
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
938a3bda
编写于
5月 25, 2021
作者:
饶先宏
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
202105251743
上级
fd62634d
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
17 addition
and
35 deletion
+17
-35
hdl4secell/src/hdl4se_bind2.c
hdl4secell/src/hdl4se_bind2.c
+1
-2
hdl4secell/src/hdl4se_bind3.c
hdl4secell/src/hdl4se_bind3.c
+1
-3
hdl4secell/src/hdl4se_bind4.c
hdl4secell/src/hdl4se_bind4.c
+1
-3
hdl4secell/src/hdl4se_binop.c
hdl4secell/src/hdl4se_binop.c
+1
-2
hdl4secell/src/hdl4se_mux16.c
hdl4secell/src/hdl4se_mux16.c
+1
-3
hdl4secell/src/hdl4se_mux2.c
hdl4secell/src/hdl4se_mux2.c
+1
-2
hdl4secell/src/hdl4se_mux4.c
hdl4secell/src/hdl4se_mux4.c
+1
-2
hdl4secell/src/hdl4se_mux8.c
hdl4secell/src/hdl4se_mux8.c
+1
-3
hdl4secell/src/hdl4se_reg.c
hdl4secell/src/hdl4se_reg.c
+1
-4
hdl4secell/src/hdl4se_split2.c
hdl4secell/src/hdl4se_split2.c
+2
-2
hdl4secell/src/hdl4se_split4.c
hdl4secell/src/hdl4se_split4.c
+3
-3
hdl4secell/src/hdl4se_unop.c
hdl4secell/src/hdl4se_unop.c
+2
-4
hdl4secell/src/hdl4se_wire.c
hdl4secell/src/hdl4se_wire.c
+1
-2
未找到文件。
hdl4secell/src/hdl4se_bind2.c
浏览文件 @
938a3bda
...
...
@@ -266,8 +266,7 @@ static int hdl4se_bind2_hdl4se_detector_GetSignalValue(HOBJECT object, int index
{
sHDL4SEBind2
*
pobj
;
pobj
=
(
sHDL4SEBind2
*
)
objectThis
(
object
);
objectCall1
(
value
,
Assign
,
pobj
->
out_data
);
return
0
;
return
hdl4se_bind2_hdl4se_unit_GetValue
(
object
,
0
,
pobj
->
out_width
,
value
);
}
static
int
hdl4se_bind2_hdl4se_detector_GetUnitCount
(
HOBJECT
object
)
...
...
hdl4secell/src/hdl4se_bind3.c
浏览文件 @
938a3bda
...
...
@@ -98,7 +98,6 @@ static int hdl4se_bind3Create(const PARAMITEM* pParams, int paramcount, HOBJECT*
{
sHDL4SEBind3
*
pobj
;
int
i
;
int
outputwidth
;
pobj
=
(
sHDL4SEBind3
*
)
malloc
(
sizeof
(
sHDL4SEBind3
));
if
(
pobj
==
NULL
)
return
-
1
;
...
...
@@ -267,8 +266,7 @@ static int hdl4se_bind3_hdl4se_detector_GetSignalValue(HOBJECT object, int index
{
sHDL4SEBind3
*
pobj
;
pobj
=
(
sHDL4SEBind3
*
)
objectThis
(
object
);
objectCall1
(
value
,
Assign
,
pobj
->
out_data
);
return
0
;
return
hdl4se_bind3_hdl4se_unit_GetValue
(
object
,
0
,
pobj
->
out_width
,
value
);
}
static
int
hdl4se_bind3_hdl4se_detector_GetUnitCount
(
HOBJECT
object
)
...
...
hdl4secell/src/hdl4se_bind4.c
浏览文件 @
938a3bda
...
...
@@ -98,7 +98,6 @@ static int hdl4se_bind4Create(const PARAMITEM* pParams, int paramcount, HOBJECT*
{
sHDL4SEBind4
*
pobj
;
int
i
;
int
outputwidth
;
pobj
=
(
sHDL4SEBind4
*
)
malloc
(
sizeof
(
sHDL4SEBind4
));
if
(
pobj
==
NULL
)
return
-
1
;
...
...
@@ -267,8 +266,7 @@ static int hdl4se_bind4_hdl4se_detector_GetSignalValue(HOBJECT object, int index
{
sHDL4SEBind4
*
pobj
;
pobj
=
(
sHDL4SEBind4
*
)
objectThis
(
object
);
objectCall1
(
value
,
Assign
,
pobj
->
out_data
);
return
0
;
return
hdl4se_bind4_hdl4se_unit_GetValue
(
object
,
0
,
pobj
->
out_width
,
value
);
}
static
int
hdl4se_bind4_hdl4se_detector_GetUnitCount
(
HOBJECT
object
)
...
...
hdl4secell/src/hdl4se_binop.c
浏览文件 @
938a3bda
...
...
@@ -350,8 +350,7 @@ static int hdl4se_binop_hdl4se_detector_GetSignalValue(HOBJECT object, int index
{
sHDL4SEBinop
*
pobj
;
pobj
=
(
sHDL4SEBinop
*
)
objectThis
(
object
);
objectCall1
(
value
,
Assign
,
pobj
->
out_data
);
return
0
;
return
hdl4se_binop_hdl4se_unit_GetValue
(
object
,
2
,
pobj
->
out_width
,
value
);
}
static
int
hdl4se_binop_hdl4se_detector_GetUnitCount
(
HOBJECT
object
)
...
...
hdl4secell/src/hdl4se_mux16.c
浏览文件 @
938a3bda
...
...
@@ -209,7 +209,6 @@ static int hdl4se_mux16_hdl4se_unit_Connect(HOBJECT object, int index, HOBJECT f
static
int
hdl4se_mux16_hdl4se_unit_GetValue
(
HOBJECT
object
,
int
index
,
int
width
,
IBigNumber
**
value
)
{
int
i
;
int
sel
;
sHDL4SEMux16
*
pobj
;
pobj
=
(
sHDL4SEMux16
*
)
objectThis
(
object
);
...
...
@@ -273,8 +272,7 @@ static int hdl4se_mux16_hdl4se_detector_GetSignalValue(HOBJECT object, int index
{
sHDL4SEMux16
*
pobj
;
pobj
=
(
sHDL4SEMux16
*
)
objectThis
(
object
);
objectCall1
(
value
,
Assign
,
pobj
->
out_data
);
return
0
;
return
hdl4se_mux16_hdl4se_unit_GetValue
(
object
,
0
,
pobj
->
width
,
value
);
}
static
int
hdl4se_mux16_hdl4se_detector_GetUnitCount
(
HOBJECT
object
)
...
...
hdl4secell/src/hdl4se_mux2.c
浏览文件 @
938a3bda
...
...
@@ -211,7 +211,6 @@ static int hdl4se_mux2_hdl4se_unit_Connect(HOBJECT object, int index, HOBJECT fr
static
int
hdl4se_mux2_hdl4se_unit_GetValue
(
HOBJECT
object
,
int
index
,
int
width
,
IBigNumber
**
value
)
{
int
i
;
int
sel
;
sHDL4SEMux2
*
pobj
;
pobj
=
(
sHDL4SEMux2
*
)
objectThis
(
object
);
...
...
@@ -276,7 +275,7 @@ static int hdl4se_mux2_hdl4se_detector_GetSignalValue(HOBJECT object, int index,
{
sHDL4SEMux2
*
pobj
;
pobj
=
(
sHDL4SEMux2
*
)
objectThis
(
object
);
objectCall1
(
value
,
Assign
,
pobj
->
out_data
);
return
hdl4se_mux2_hdl4se_unit_GetValue
(
object
,
0
,
pobj
->
width
,
value
);
return
0
;
}
...
...
hdl4secell/src/hdl4se_mux4.c
浏览文件 @
938a3bda
...
...
@@ -209,7 +209,6 @@ static int hdl4se_mux4_hdl4se_unit_Connect(HOBJECT object, int index, HOBJECT fr
static
int
hdl4se_mux4_hdl4se_unit_GetValue
(
HOBJECT
object
,
int
index
,
int
width
,
IBigNumber
**
value
)
{
int
i
;
int
sel
;
sHDL4SEMux4
*
pobj
;
pobj
=
(
sHDL4SEMux4
*
)
objectThis
(
object
);
...
...
@@ -274,7 +273,7 @@ static int hdl4se_mux4_hdl4se_detector_GetSignalValue(HOBJECT object, int index,
{
sHDL4SEMux4
*
pobj
;
pobj
=
(
sHDL4SEMux4
*
)
objectThis
(
object
);
objectCall1
(
value
,
Assign
,
pobj
->
out_data
);
return
hdl4se_mux4_hdl4se_unit_GetValue
(
object
,
0
,
pobj
->
width
,
value
);
return
0
;
}
...
...
hdl4secell/src/hdl4se_mux8.c
浏览文件 @
938a3bda
...
...
@@ -209,7 +209,6 @@ static int hdl4se_mux8_hdl4se_unit_Connect(HOBJECT object, int index, HOBJECT fr
static
int
hdl4se_mux8_hdl4se_unit_GetValue
(
HOBJECT
object
,
int
index
,
int
width
,
IBigNumber
**
value
)
{
int
i
;
int
sel
;
sHDL4SEMux8
*
pobj
;
pobj
=
(
sHDL4SEMux8
*
)
objectThis
(
object
);
...
...
@@ -273,8 +272,7 @@ static int hdl4se_mux8_hdl4se_detector_GetSignalValue(HOBJECT object, int index,
{
sHDL4SEMux8
*
pobj
;
pobj
=
(
sHDL4SEMux8
*
)
objectThis
(
object
);
objectCall1
(
value
,
Assign
,
pobj
->
out_data
);
return
0
;
return
hdl4se_mux8_hdl4se_unit_GetValue
(
object
,
0
,
pobj
->
width
,
value
);
}
static
int
hdl4se_mux8_hdl4se_detector_GetUnitCount
(
HOBJECT
object
)
...
...
hdl4secell/src/hdl4se_reg.c
浏览文件 @
938a3bda
...
...
@@ -141,7 +141,6 @@ static int hdl4se_regCreate(const PARAMITEM* pParams, int paramcount, HOBJECT* p
static
void
hdl4se_regDestroy
(
HOBJECT
object
)
{
sHDL4SEReg
*
pobj
;
int
i
;
pobj
=
(
sHDL4SEReg
*
)
objectThis
(
object
);
if
(
pobj
->
name
!=
NULL
)
free
(
pobj
->
name
);
...
...
@@ -175,7 +174,6 @@ static int hdl4se_reg_hdl4se_unit_Connect(HOBJECT object, int index, HOBJECT fro
static
int
hdl4se_reg_hdl4se_unit_GetValue
(
HOBJECT
object
,
int
index
,
int
width
,
IBigNumber
**
value
)
{
int
i
;
sHDL4SEReg
*
pobj
;
pobj
=
(
sHDL4SEReg
*
)
objectThis
(
object
);
objectCall1
(
value
,
Assign
,
pobj
->
out_data
);
...
...
@@ -227,8 +225,7 @@ static int hdl4se_reg_hdl4se_detector_GetSignalValue(HOBJECT object, int index,
{
sHDL4SEReg
*
pobj
;
pobj
=
(
sHDL4SEReg
*
)
objectThis
(
object
);
objectCall1
(
value
,
Assign
,
pobj
->
out_data
);
return
0
;
return
hdl4se_reg_hdl4se_unit_GetValue
(
object
,
0
,
pobj
->
width
,
value
);
}
static
int
hdl4se_reg_hdl4se_detector_GetUnitCount
(
HOBJECT
object
)
...
...
hdl4secell/src/hdl4se_split2.c
浏览文件 @
938a3bda
...
...
@@ -305,9 +305,9 @@ static int hdl4se_split2_hdl4se_detector_GetSignalValue(HOBJECT object, int inde
if
(
index
<
0
||
index
>
SPLITCOUNT
)
return
-
1
;
if
(
index
==
0
)
objectCall1
(
value
,
Assign
,
pobj
->
in_data
);
return
objectCall3
(
pobj
->
in
,
GetValue
,
pobj
->
in_index
,
pobj
->
width
,
pobj
->
in_data
);
else
objectCall1
(
value
,
Assign
,
pobj
->
out_data
[
index
-
1
]
);
return
hdl4se_split2_hdl4se_unit_GetValue
(
object
,
index
,
pobj
->
out_info
[
index
-
1
][
0
],
value
);
return
0
;
}
...
...
hdl4secell/src/hdl4se_split4.c
浏览文件 @
938a3bda
...
...
@@ -308,9 +308,9 @@ static int hdl4se_split4_hdl4se_detector_GetSignalValue(HOBJECT object, int inde
if
(
index
<
0
||
index
>
SPLITCOUNT
)
return
-
1
;
if
(
index
==
0
)
objectCall1
(
value
,
Assign
,
pobj
->
in_data
);
else
objectCall1
(
value
,
Assign
,
pobj
->
out_data
[
index
-
1
]
);
return
objectCall3
(
pobj
->
in
,
GetValue
,
pobj
->
in_index
,
pobj
->
width
,
pobj
->
in_data
);
else
return
hdl4se_split4_hdl4se_unit_GetValue
(
object
,
index
,
pobj
->
out_info
[
index
-
1
][
0
],
value
);
return
0
;
}
...
...
hdl4secell/src/hdl4se_unop.c
浏览文件 @
938a3bda
...
...
@@ -181,7 +181,6 @@ static int hdl4se_unopCreate(const PARAMITEM* pParams, int paramcount, HOBJECT*
static
void
hdl4se_unopDestroy
(
HOBJECT
object
)
{
sHDL4SEUnop
*
pobj
;
int
i
;
pobj
=
(
sHDL4SEUnop
*
)
objectThis
(
object
);
if
(
pobj
->
name
!=
NULL
)
free
(
pobj
->
name
);
...
...
@@ -215,7 +214,6 @@ static int hdl4se_unop_hdl4se_unit_Connect(HOBJECT object, int index, HOBJECT fr
static
int
hdl4se_unop_hdl4se_unit_GetValue
(
HOBJECT
object
,
int
index
,
int
width
,
IBigNumber
**
value
)
{
int
i
;
sHDL4SEUnop
*
pobj
;
pobj
=
(
sHDL4SEUnop
*
)
objectThis
(
object
);
if
(
pobj
->
datavalid
==
0
)
{
...
...
@@ -307,9 +305,9 @@ static int hdl4se_unop_hdl4se_detector_GetSignalValue(HOBJECT object, int index,
sHDL4SEUnop
*
pobj
;
pobj
=
(
sHDL4SEUnop
*
)
objectThis
(
object
);
if
(
index
==
0
)
objectCall
1
(
value
,
Assign
,
pobj
->
in_data
);
objectCall
3
(
pobj
->
wire_in
,
GetValue
,
pobj
->
wire_in_index
,
pobj
->
in_width
,
value
);
else
if
(
index
==
1
)
objectCall1
(
value
,
Assign
,
pobj
->
out_data
);
return
hdl4se_unop_hdl4se_unit_GetValue
(
object
,
index
,
pobj
->
out_width
,
value
);
return
0
;
}
...
...
hdl4secell/src/hdl4se_wire.c
浏览文件 @
938a3bda
...
...
@@ -239,8 +239,7 @@ static int hdl4se_wire_hdl4se_detector_GetSignalValue(HOBJECT object, int index,
{
sHDL4SEWire
*
pobj
;
pobj
=
(
sHDL4SEWire
*
)
objectThis
(
object
);
objectCall1
(
value
,
Assign
,
pobj
->
out_data
);
return
0
;
return
hdl4se_wire_hdl4se_unit_GetValue
(
object
,
index
,
pobj
->
width
,
value
);
}
static
int
hdl4se_wire_hdl4se_detector_GetUnitCount
(
HOBJECT
object
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录