Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Computer Architecture 1) A system has 256 words of main memory, 64 words of cach

ID: 3817604 • Letter: C

Question

Computer Architecture

1) A system has 256 words of main memory, 64 words of cache, and a block size of 8 words. The following words are access in this order: 0x2a, 0x84, 0xc8, 0x43, 0x2c, 0x22, 0x4d, 0xc9, 0x98, 0x06, 0x14, 0xfa, 0x08, 0x63, 0x2b, 0x20. The cache starts empty. (write result in excel show tag and age)

Using a 4-way set associative (4 blocks in a set) cache with LRU replacement

Use direct mapping

2) What is the time for main memory to transfer a block of size 64 to main memory. The time for the address is 10 cycles, the time for data is 2 cycles, and 1 cycle is needed between sending the next address. Solve for

              a) no optimization

              b) K= 4

              c) M=4

              d) K=2, M=2

Explanation / Answer

class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
email = db.Column(db.String(120))
password_hash = db.Column(db.String(64))
username = db.Column(db.String(64), unique=True, index=True)
@password.setter
def password(self, secret key):
self.password_hash = generate_password_hash(password)
def __repr__(self):
return '<User %r>' % self.username
#Create custom models see
class MyModelView(sqla.ModelView):
@admin.expose('/login/')
def index(self):
return self.render('login.html')
# Create custom administrator see
class MyAdminView(admin.BaseView):
@admin.expose('/')
def index(self):
return self.render('myadmin.html')
administrator = admin.Admin(name="Simple Views")
admin.add_view(MyAdminView(name='hello'))
admin.add_view(MyModelView(User, db.session))
admin.init_app(app)
app.run()
cup administrator

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote