COMP2121 Microprocessors and Interfacing

COMP2121 Microprocessors and Interfacing 20T1 Final Project: Microwave Oven Simulator Write a report on how you would design a microwave oven simulator that adheres to the given specification (on page 3). Your report should be around eight pages. Note that this work is to be done individually. Submit the report as a PDF file using […]

COMP2121 Microprocessors and Interfacing Read More »

COMP2121 homework

Comparing the Instruction Set Architectures of ARM and AVR In this homework, you will learn the ISA of another RISC microprocessor, ARM, and compare it with that of AVR. As you are aware by now, an ISA consists of four components: memory models; registers; instructions; and, data types. Explore each component. You should focus on

COMP2121 homework Read More »

COMP2041 9044 23T2 Assignment 2 Sheepy

Assignment 2: Sheepy version: 1.4 last updated: 2023-07-22 18�00 This assignment aims to give you practice in Python programming generally experience in translating between complex formats with Python clarify your understanding of Shell syntax & semantics introduce you to Python syntax & semantics Introduction Your task in this assignment is to write a POSIX Shell

COMP2041 9044 23T2 Assignment 2 Sheepy Read More »

COMP2041 9044 23T2 Assignment 1 Pigs

Assignment 1: Pigs version: 1.3 last updated: 2022-07-04 9�30 This assignment aims to give you practice in Shell programming generally a clear concrete understanding of Git’s core semantics Note: the material in the lecture notes will not be sufficient by itself to allow you to complete this assignment. You may need to search on-line documentation

COMP2041 9044 23T2 Assignment 1 Pigs Read More »

COMP1521 23T2 — Assignment 1 Pacman in MIPS

Assignment 1: Pacman in MIPS version: 1.0a last updated: 2023-06-27 17�45�00 You may find the Assignment 1 overview lecture to be a good starting point. to give you experience writing MIPS assembly code to give you experience translating C to MIPS to give you experience with data and control structures in MIPS Getting Started Create

COMP1521 23T2 — Assignment 1 Pacman in MIPS Read More »

basin hash block

// Given up to BLOCK_SIZE (256) bytes, produce the // hash of that block. You should not modify this file, // and should not attempt to compile it as part of your // solution. // You can run this program yourself using // 1521 basin-hash-block – for example, // 1521 basin-hash-block < examples/aaa/emojis.txt #include "basin.h"

basin hash block Read More »

SIZE 256

#ifndef RSYNC_H #define RSYNC_H #include #include // Sizes (in bytes) of various fields. #define MAGIC_SIZE 4 #define NUM_RECORDS_SIZE 1 #define PATHNAME_LEN_SIZE 2 #define NUM_BLOCKS_SIZE 3 #define HASH_SIZE 8 #define MODE_SIZE 10 #define FILE_SIZE_SIZE 4 #define BLOCK_INDEX_SIZE 3 #define UPDATE_LEN_SIZE 2 #define MATCH_BYTE_BITS 8 // Note that the basin index magic numbers are exactly 4 bytes,

SIZE 256 Read More »

basin provided

#include #include #include #include “basin.h” /// @brief Compute the hash of a block of bytes, using the 64 bit NFV-1a hash. /// If you wish to represent your bytes differently (say as an array of uint8_t) /// you may want to make a wrapper around this function. /// @param block The array of bytes to

basin provided Read More »

basin main

#include #include #include #include #include #include “basin.h” int main(int argc, char **argv) { int stage = 0; for (;;) { int option_index; int opt = getopt_long( argc, argv, (struct option[]) { {“stage-1”, no_argument, NULL, 1}, {“stage-2”, no_argument, NULL, 2}, {“stage-3”, no_argument, NULL, 3}, {“stage-4”, no_argument, NULL, 4}, {0, 0, 0, ‘?’}, &option_index if (opt ==

basin main Read More »