留学生代考 CSE 141L: Introduction to Computer Architecture Lab

CSE 141L: Introduction to Computer Architecture Lab
Implementing
, UC San SE 141L CC BY-NC-ND – Content derived from materials from , , , and others

Copyright By PowCoder代写 加微信 powcoder

Milestone 1 is due in 7 days
• What to submit?
– SOMETHING
• M1 is graded for completion, not accuracy
– Thepurposeofmilestonesistohelpyoumanagelarge,long-termproject – TAswillusegradescope“grades”tohelpgivefeedback
– Recall:OnlyMilestone4(finalsubmission)isactualgrade*
• *With exceptions for things such as skipping milestones altogether
CC BY-NC-ND – Content derived from materials from , , , and others 2

Today’s Objectives:
What does implementing look like?
• Some tips for setting up CloudLabs
• Exploring the basic_proc example
• Exploring ModelSim/Questa and Quartus
n.b. the rest of these slides not presented, but here as a reference
CSE 141L CC BY-NC-ND – Content derived from materials from , , , and others 3

The code editors in ModelSim/Questa/Quartus aren’t great
• You can use them, but more modern editors have some helpful tools
• Especially around version control
– Becauseyouareusingversioncontrol,right?
• And I don’t mean copying folders milestone1, m1_working, m1_real, m1_final, …
CC BY-NC-ND – Content derived from materials from , , , and others 4

CloudLabs — What’s ephemeral and what’s not
• Spins up a ‘fresh machine’ each login
• But you have a shared L:/ drive that persists across sessions
– Soputstuffthere
– Butalsomaybedon’ttrustit100%
• [What fixes this? Version control of course!]
• Take advantage of “portable apps”
– https://code.visualstudio.com/docs/editor/portable
– https://git-scm.com/download/win–Choose“portable”andinstallinL:/
CSE 141L CC BY-NC-ND – Content derived from materials from , , , and others 5

Portable VSCode
• Download the **zip**, not the installer
• Unzip the folder in your L:/ drive, and make a folder called data
CSE 141L CC BY-NC-ND – Content derived from materials from , , , and others 6

If using portable apps, have to point VSCode to git
• File->Preferences->Settings; search `git-path`; write this json:
“git.enabled”: true,
“git.path”: “L:\\YOUR_FOLDER_NAME\\bin\\git.exe” }
CSE 141L CC BY-NC-ND – Content derived from materials from , , , and others 7

Quick reminder: No public repos please
• Q: What’s really clear and indisputable evidence of sharing code?
• A: A publicly accessible repository
CSE 141L CC BY-NC-ND – Content derived from materials from , , , and others 8

The “github” built-in won’t find private repos, so you have to type the URL by hand
• You can use the default ‘credential helper’ (“manager-core”); authorize it to github; and then it will clone
CSE 141L CC BY-NC-ND – Content derived from materials from , , , and others 9

Now you’re set up to code!
CSE 141L CC BY-NC-ND – Content derived from materials from , , , and others 10

Careful, you (can) have two editors open
CSE 141L CC BY-NC-ND – Content derived from materials from , , , and others 11

[Demo Plan]
• Create new project from basic_proc • Compile
– Showwarnings;exploreALU1vs1’b1
• Go to waveform viewer – Showresults
– Workexamples/takeQ’s
CSE 141L CC BY-NC-ND – Content derived from materials from , , , and others 12

程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com