1 / 6

Test data generation for arithmetic subsystem of CPUs MIPS64

Test data generation for arithmetic subsystem of CPUs MIPS64. Evgeni Kornikhin MSU. test data. … lui t1, ?? lui t2, ?? add t3, t1, t2 …. … lui t1, 0x1 lui t2, 0x0 add t3, t1, t2 …. compile. load. execute. test program. test template. cpu. Branches. Functional specification.

Download Presentation

Test data generation for arithmetic subsystem of CPUs MIPS64

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Test data generation for arithmetic subsystem of CPUs MIPS64 Evgeni Kornikhin MSU

  2. testdata …lui t1, ??lui t2, ??add t3, t1, t2… …lui t1, 0x1lui t2, 0x0add t3, t1, t2… compile load execute testprogram testtemplate cpu

  3. Branches Functionalspecification Precondition Pseudocode

  4. add rd, 0x01, 0x02 -- test case add 0x8000, 0x8000, rd overflow add 0x0, 0x0, rd test situations … regular add a, ??, ?? sub b, ??, ?? add c, ??, ?? … testtemplate test cases space

  5. lui rt, 0x8000 ori rt, rt, 0x0 lui rs, 0x8000 ori rs, rs, 0x0 add rt, rs, rd ADD: IntegerOverflow The 32-bit word value in rt is added to the 32-bit value in rs to produce a 32-bit result. If the addition results in 32-bit 2’s complement arithmetic overflow, the destination register is not modified and an Integer Overflow exception occurs. lui rt, 0x8012 ori rt, rt, 0x102 lui rs, 0x8005 ori rs, rs, 0x220 add rt, rs, rd . . . ASSERT WordValue(rs) AND WordValue(rt);temp := rt[31].rt + rs[31].rt;SITUATION IntOverflow IS temp[32] # temp[31].

  6. 1 testsituations standard 2 testsituationsmodels test datagenerator testtemplate testdata testgenerator testprogram

More Related