From a8335b4482361f28feeafe3a6cef546607101ec9 Mon Sep 17 00:00:00 2001 From: Celso Antonio Uliana Junior <32890738+CelsoUliana@users.noreply.github.com> Date: Wed, 3 Oct 2018 00:55:20 -0300 Subject: [PATCH 1/3] Add myself --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 2fdad90..ee2c812 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,13 @@ Start adding your names here: - [![twitter-alt][twitter-img]](https://twitter.com/akshaynshaju) [![github-alt][github-img]](https://github.com/Akshay-N-Shaju) +### Celso Uliana +- Last year student. +- Perl and Node enthusiastic. +- Regex, automating and graphs. +- [![github-alt][github-img]](https://github.com/CelsoUliana) + [![facebook-alt][facebook-img]](https://www.facebook.com/profile.php?id=100009599017240&ref=bookmarks) + ### Alok Rajasukumaran - AI Architect by profession - [!Know more at](https://alokraj68.in) From 5608178ebef8d0ac83896558b90ef06bf2ae3fb3 Mon Sep 17 00:00:00 2001 From: Celso Antonio Uliana Junior <32890738+CelsoUliana@users.noreply.github.com> Date: Wed, 3 Oct 2018 00:59:02 -0300 Subject: [PATCH 2/3] Add a little graduation script. --- code/simcache.pl | 84 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 code/simcache.pl diff --git a/code/simcache.pl b/code/simcache.pl new file mode 100644 index 0000000..f9ea20f --- /dev/null +++ b/code/simcache.pl @@ -0,0 +1,84 @@ +#!/usr/bin/perl -w +use strict; +use warnings; + +############################################################ +### Usage: simcache.pl n_blocks n_blocksPerSet(associativity) n_wordsPerBlock TracerFile +### ex : simcache.pl 128 1 4 trace1.txt +### output: n_access n_missRate n_substitutions +### ex : 300 20 35 +### +### Celso A. Uliana Junior - Aug 2016 +############################################################ + +die "Usage: simcache.pl n_blocks n_blocksPerSet(associativity) n_wordsPerBlock TracerFile\n " if ( @ARGV != 4 ); + + +my $n_set = ( my $blocks = shift) / ( my $assoc = shift); +my $n_words = shift; +my $tracerfile = shift; +my %cs; +my $i = 0, my $j = 0; +my $n_access, my $n_miss, my $n_substitutions, my $n_missRate; +my $n_log_words = log($n_words)/log(2); + +############################################################ +# If tracerfile is not .txt adds .txt to the string +############################################################ + +if($tracerfile !~ /^\w+\.(doc|txt)$/){ + $tracerfile = $tracerfile . ".txt"; +} + +############################################################ +# Reading tracer file +############################################################ + +open TRC , "$tracerfile" or die "Couldn't open the file $tracerfile\n" ; + + + +my $test = 0 ; +my $test2 = 0 ; +my $test3 = 0 ; + +my $hit = 0 ; +while( ){ + chomp ; + if( $n_set == $blocks ){ + if( $cs{int(($_ / 4) % $n_set)}[0] ){ + $test = int(($_ / 4) % $n_set); + $test2 = int( ($_ / 4) / $n_set ); + $test3 = $cs{int(($_ / 4) % $n_set)}[2] ; + print "indice = $test // tag esperada = $test2 // tag no hash = $test3 \n"; + if( $cs{int(($_ / 4) % $n_set)}[2] != int( ($_ / 4) / $n_set ) ){ + $n_miss++; + $n_substitutions++; + $cs{(int($_ / 4) % $n_set)}[2] = int( ($_ / 4) / $n_set ); + } + else{ + $hit++; + } + } + else{ + $cs{int(($_ / 4) % $n_set)}[0] = 1; + $n_miss++ ; + $cs{int(($_ / 4) % $n_set)}[2] = int( ($_ / 4) / $n_set); + + } + } + + $n_access++; +} + +print "hits = $hit // misses = $n_miss\n"; +close TRC; + +############################################################ +# Print the n_acess n_missrate n_substitutions +############################################################ + +printf ("%d %d %d \n", $n_access, (($n_miss / $n_access) * 100), $n_substitutions); + +exit(0); +############################################################ \ No newline at end of file From 8bb8e2b927dcf4c660f92a5906c13a9076e2fbdb Mon Sep 17 00:00:00 2001 From: ravikishorethella Date: Tue, 2 Oct 2018 23:00:58 -0500 Subject: [PATCH 3/3] Updated README.md with the new contributor --- README.md | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2fdad90..2cbb95e 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Start adding your names here: - Software Engineer in NZ - [![twitter-alt][twitter-img]](https://twitter.com/RuiLi15) [![github-alt][github-img]](https://github.com/gitruili) - + ### Aditya Kolsur - I'm a 3rd year student. - I am a web developer. @@ -123,7 +123,7 @@ Start adding your names here: - I also like listening to music and playing games. - [![twitter-alt][twitter-img]](https://twitter.com/duongoku) [![github-alt][github-img]](https://github.com/duongoku) - + ### festusdrakon - Interested in figuring out how to turn Data into Information, primarily to improve customer experiences on the web. - Permission Marketing FTW! (Just **never** at the cost of privacy invasion.) @@ -215,7 +215,7 @@ Start adding your names here: - I love Python :heart: - Connect with me on social media platform - [![twitter-alt][twitter-img]](https://twitter.com/rowhitswami) - [![facebook-alt][facebook-img]](https://facebook.com/rowhitswami) + [![facebook-alt][facebook-img]](https://facebook.com/rowhitswami) [![github-alt][github-img]](https://github.com/rowhitswami) ### Shubham Nishad @@ -278,7 +278,7 @@ Start adding your names here: - Computer science student - Nerd, geek, gamer, I love TLoK - [![github-alt][github-img]](https://github.com/frannievas) - + ### Naufal Yudhistira - Ordinary student. - Like to play with cats. @@ -414,6 +414,13 @@ Start adding your names here: - Engineer at heart, if it isn't broken, break it! - [![github-alt][github-img]](https://github.com/slouchd) +### Ravi Thella +- React Developer +- Hobbies: + - Programming + - Watching Tennis +- [![github-alt][github-img]](https://github.com/ravikishorethella) + ### Example Profile - I'm an example that you can copy, if you want :) - I work for... @@ -424,7 +431,7 @@ Start adding your names here: [![tumblr-alt][tumblr-img]](https://example.tumblr.com) [![dribbble-alt][dribbble-img]](https://dribbble.com/example) [![github-alt][github-img]](https://github.com/example) - + ## How to Contribute