====== News ====== simics presentation: May 21(Monday)6:00pm-9:20pm at SEIEE 3-414/404/528 ======Main Content=== =====Introduction== The goal of our project is to design a pipelined, cached processor with some advanced modules. Verilog is recommended to you as your design language. Our discussing group is [[http://groups.google.com/group/mips-acm-sjtu]], or you can send email to mips-acm-sjtu@googlegroups.com =====Purpose== * Deepen your understanding of computer hardware concepts such as pipeline, cache and ISA. * Learn how to design hardwares using hardware description languages. * Learn how to make hardware simulations using standard tools such as ModelSim. =====Requirements== - Basic Module * Your 5-stage pipelined CPU should be able to run a required subset of MIPS 32 bit instructions. * Your design of CPU should contain 2-level caches. * Your design of CPU should include dynamic branch prediction(bonus). - Instruction Set * The minimum set of instruction includes: ''**add, addi, sub, and, andi, beq, bne, j, jal, jr, lw, nor, or, ori, lui, slt, slti, sll, srl, sw**'' * You can refer to the “**green card**” for more details concerning the instructions. - Pipeline Design * As this is the core of our project, we will certainly test heavily on correctness and robustness of the pipeline design. * You should at least design and implement the pipeline which is described in the textbook. * In addition, you can also consult Mr. Li Yamin’s materials if necessary. * The difficulty of pipeline design lies in solving several kinds of hazards. This will be discussed later. - Cache and Memory * The following requirements should be strictly followed: - The size of data of L1 Cache is fixed to 1KB. - The size of data of L2 Cache is fixed to 16KB. - The size of Memory is fixed to 1MB. - Data and instructions share one memory space. Do not split your memory into two. * Notice: only the size of data is limited. Therefore, you are free to design the additional data used in your cache including valid bits, dirty bits and so on. Moreover, you should choose your design of your cache carefully. A bad design of cache will invite great complexity, low efficiency and endless bugs. - Advance Module * This is the most exciting part of our project. You can try out whatever you are interested in, but it should be related to CPU design. In past years, we have seen (or witnessed, which is more appropriate): - Linux Schedule Policy - Memory Hierarchy - Instruction Level Parallelism (ILP) - Thread Level Parallelism (TLP) - Cache Coherence * Anything relating to CPU design is okay! Try to shock TAs and even yourselves! =====Schedule== * Mar 2 6:00pm: Lecture for Pipeline * Mar 24 23:59:59: Deadline for Pipeline * Mar 28 7:30pm: Lecture for Cache & Advanced Topics * Apr 18 23:59:59: Optional Module First Check and deadline for Cache Phase * May 5 1:00pm: Presentation of Advanced Topics * May 9 23:59:59: Final submission of Advanced Topics and Simics * May 12(tentative): Presentation =====Slides=== * Pipeline {{:MIPS_pipeline.pdf|}} * Cache {{:lecture_2_-_cache_advanced_topics.pdf|}} * Optional Module - Simics{{:simics.pptx|}} - Advanced Mips =====Submission=== * Pipeline {{:mips_2012_phase1提交规范.pdf|}} - **Results**{{:phase1_result.xlsx|}} * Cache - **Results**{{:phase2_finaltest_result.xls|}} * Optional Module - Simics - Advanced Mips =====Tools=== **Modelsim 6.5b SE**, used for the final test download link: windows: http://download.acm-project.org/modelsim_6.5b_se_windows.exe linux: - http://wenku.baidu.com/view/79a404c29ec3d5bbfd0a74a3.html - http://download.acm-project.org/install.linux - http://download.acm-project.org/modelsim-base.mis - http://download.acm-project.org/modelsim-docs.mis - http://download.acm-project.org/modelsim-linux.mis =====Resources=== **Web Pages** * [[http://www-inst.eecs.berkeley.edu/~cs152/sp11/]],where you may find useful things * Mips Archive[[http://202.120.61.3:8103/wiki/Mips_Archive]] * Couse page for last year[[http://202.120.61.3:8103/wiki/Mips_2011]] * Simics: [[http://www-inst.eecs.berkeley.edu/~cs152/sp11/]] **Documents** * Verilog tutorial {{:verilogtutorial.pdf|}} * Verilog tutorial in chinese{{:verilog_hdl.pdf|}} * Green Card {{:10-mips-inst.rar|}} * slides of liyanmin{{:liyamin_slides.rar|}} * Simics Installation {{:simics_install.pdf|}} * Simics Lab 1 & 2 & 3: {{:lab1.rar|}} {{:lab2.rar|}} {{:lab3.rar|}} =====Contact=== Diyi Yang(杨笛一) huyaoyang001 [at] gmail.com Liuli Chen(陈旒俐)chenliuli.sea [at] gmail.com Hongyu Zhu(朱虹宇)serailhydra [at] gmail.com