Skip to content

Instantly share code, notes, and snippets.

View krish-iyer's full-sized avatar

B Krishnan Iyer krish-iyer

View GitHub Profile
@krish-iyer
krish-iyer / CS258_Exam3.py
Created December 11, 2023 22:52
CS258 Exam 3
import numpy as np
# Assume : An instruction generate 16 bytes of data traffic at the memory bus
# These instrucions are 30% of the total instructions
# The memory bus is 64 Byte wide
# The memory bus is 6GHz
# Miss rate of L1 : 15%
# Miss rate of L2 : 5%
# Access time of L1 : 2 cycle
# Access time of L2 : 20 cycle
# Access time of memory : 120 cycle
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <time.h>
#include <string.h>
#include <ctype.h>
#include <stdbool.h>
#include <unistd.h>
#include <math.h>
#include "ftd2xx.h"

Before programming any microcontroller we require few tools(both hardware and software) to get our programme into the programme memory of the microcontroller. In the end every code or data is readable by the microcontroller or any processor in binary format but it's very much time consuming and difficult at the same time to write instructions in binary. So we use high-level language and then convert into binary lastly burn into the microcontroller. You can write the second stage programme that's assembly and even that requires an assembler.

So things we need

  1. Editor -> where you write your programme
  2. Compiler and build tools -> To convert high-level or assembly code to binary(it's very architecture specific)
  3. Debugging tools -> (only if your dev board supports) to look into the memory and control flow of programme etc.

Hence managing all these things differently is going to be messy so we have something called IDE(integrated development enviornment) which integrates all the above mentioned things in a

function y = SerialPlot(s)
t=0;
m = 0 ;
interv = 1000 ;
while ( t <interv )
st = fscanf(s, '%d');
plot(t, st,'*')
hold on
t = t + 1;
pause(0.3)
function y = SerialOpen(serialcom)
y = serial(serialcom);
fopen(y);
end

SDHCI MMC Driver

This driver project is a part of GSoC'18 and is aimed at providing support for PCI devices with class 8 and subclass 5 over x86 architecture. This document will make you familiar with the code produced during GSoC, loading and testing the driver(including hardware emulation), insight into the code and future tasks.

For detailed explanations about the project, you can refer the weekly reports and comment issues if any. For this project we have referred SD Host Controller Spec Version 1.00 and Physical Layer Spec Version 1.10.

@krish-iyer
krish-iyer / month_name.feature
Last active March 22, 2017 14:40
Converting a QA test mentioned in the issue MDL-56776 to behat test
@core @core_calendar @javascript
Feature: Perform basic calendar functionality
To ensure that month of the calendar always comes above days
As an admin
I need to add a calendar block to the course
And I need to interact with the calendar
Background:
Given the following "users" exist:
| username | firstname | lastname | email |