
计 算 机 研 究 与 发 展
DOI
:
10.7544∕issn1000G1239.2020.20190718
JournalofCom
p
uterResearchandDevelo
p
ment 57
(
12
):
2694 2702
,
2020
收稿日期
:
2019
-
10
-
11
;
修回日期
:
2020
-
02
-
13
基金项目
:
国家重点研发计划项目
(
2017YFB0202703
)
Thisworkwassu
pp
ortedb
y
theNationalKe
y
ResearchandDevelo
p
mentPro
g
ramofChina
(
2017YFB0202703
)
.
基于
SMT
求解器的微处理器指令验证数据约束生成技术
谭
坚
罗 巧 玲
王 丽 一
胡 夏 晖
范
昊
徐
占
(
江南计算技术研究所
江苏无锡
214083
)
(
tan
j
ian131@163.com
)
DataConstraintGenerationTechnolo
gy
forMicro
p
rocessorInstruction
VerificationBasedonSMTSolver
TanJian
,
LuoQiaolin
g
,
Wan
g
Li
y
i
,
HuXiahui
,
FanHao
,
andXuZhan
(
Jian
g
nanInstituteo
f
Com
p
utin
g
Technolo
gy
,
Wuxi
,
Jian
g
su
214083
)
Abstract Durin
g
thedevelo
p
mentofthe
p
rocessor
,
itisnecessar
y
tofull
y
verif
y
theinstructions
data
p
aths.Theexistin
g
simulationverificationmethodshaveinsufficientfunctionalcovera
g
einterms
ofinstructionresulto
p
erandsconstraints
,
relationshi
p
constraintsbetweeno
p
erands
,
andinternal
constraintsofinstructions
,
etc.This
p
a
p
er
p
ro
p
osesaninstructionconstraintsolvin
g
methodbasedon
satisfiabilit
y
modulotheor
y
(
SMT
)
solver.TheSMTsolverisintroducedtoconverttheinstruction
function verification tasksinto constraintsatisfaction
p
roblems.Constraintsatisfaction
p
roblem
techni
q
uesareusedto
g
eneratevalidationtu
p
ledata
,
whichcan beusedtoverif
y
thefunctional
correctnessoftheinstructionsset.Themodelin
gp
rocessesandexam
p
lesare
g
iveninfouras
p
ects
:
the
instructionresulto
p
erandconstraints
,
theinstructiono
p
erandconstraints
,
theinstructioninternal
constraints
,
andfloatG
p
ointin
g
instructionso
p
erandconstraints.Inordertoim
p
rovethe modelin
g
efficienc
y
,
we
p
ro
p
osetwostrate
g
ies.First
,
oncethetimethresholdisreached
,
thecurrent
p
rocessis
terminated
;
second
,
usin
g p
rocess mana
g
ementand thread mana
g
ementtechnolo
gy
,
a
p
arallel
solutionframeworkforinstructionfunctionconstraintsisim
p
lemented
,
andaseriesofserialsolvin
g
tasksareassi
g
nedto multi
p
lethreadsthatcanbeexecutedin
p
arallel
,
andthes
p
eedofsolutionis
acceleratedundertheconditionsofthesameconstraintscovera
g
e.Ourex
p
eriencesshowthatunder
theri
g
htcircumstances
,
instructionconstraintsolvin
g
technolo
gy
basedonSMT
p
rovidestechnical
su
pp
ortfors
y
stemGlevelfunctionalverificationtoachievetestcovera
g
eofcom
p
lexscenarios.
Ke
y
words instructionfunction
;
data
p
aths
;
constraintsolvin
g
;
SMTsolver
;
verificationdata
;
p
arallel
acceleration
摘
要
处理器研制过程中 需 要对 指 令算 术 数据 路 径进 行 覆盖 验 证
.
针对 现 有模 拟 验 证 方 法 存 在 的 不
足
,
提出了一种基于可满足模理论
(
satisfiabilit
y
modulotheor
y
,
SMT
)
的指令约束求解方法
:
利用可满
足模理论求解器将指令级功能验证任务转化成数据约束求解满足问题
.
在结果操作数约束
、
操作数间约
束
、
指令内部约束以及浮点操作数约束
4
个方面分别给出示例
,
并分别给出了利用
SMT
求解器进行约
束建模的关键过程以及可以用于指令级功能验证的元组数据
.
为提高求解模型效率
,
提出了
2
种解决方
评论