lec19_tips.pdf - CS150 Project Tips and Advice Dan Yeager Daiwei Li James Parker Testing testing testing Unit testing ● Requires you to modularize

lec19_tips.pdf - CS150 Project Tips and Advice Dan Yeager...

This preview shows page 1 - 7 out of 14 pages.

(88: $± 557rojLeJct 99;Pips HanKd &KdvPiJcLe ))Han >>@LeHagLer² ))HaPiwLePi 113Pi² //HamLes 557HarkLer
Image of page 1
99;LestPing² tLestPing² tLestPing Unit testing Requires you to modularize your design Example modules: Branch decoder Memory mapping read/write Mem mask in/out Hazard unit Control/Datapath split
Image of page 2
99;LestPing² tLestPing² tLestPing Unit testing Write tests before writing modules - test- driven development ● See CacheTestBench±v² CacheTestTasks±vh² ALUTestBench±v for examples Use tasks as "functions" ³random to generate random numbers
Image of page 3
99;LestPing² tLestPing² tLestPing Integration testing Difficult to write a testbench for the entire CPU, too many signals! Verify instruction-to-instruction behavior Write software (assembly files)
Image of page 4
99;LestPing² tLestPing² tLestPing Writing assembly tests: ld file: (reference: . edu/docs/info/ld_3.html ) SECTIONS { ± $= °x´°°°°°°°"; ±text !: { µ ¶±start·"; µ ¶±text·"; } }
Image of page 5
99;LestPing² tLestPing² tLestPing Writing assembly tests: ● Makefile: TARGET +(.+ #<ld file> `nZlu[\ ±± DXk\]`l\±llvm±`n
Image of page 6
Image of page 7

You've reached the end of your free preview.

Want to read all 14 pages?

  • Fall '08
  • Staff

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors