Difference between revisions of "Pranav"

From Vlsiwiki
Jump to: navigation, search
(Created page with 'NOTES on terminal commands and search tips grep -r <string> * --- To search for a string in folders find ~ -name "*.*" --- to search for a file FPU OBSERVATION ONE 8191 …')
 
 
(30 intermediate revisions by the same user not shown)
Line 1: Line 1:
NOTES on terminal commands and search tips
+
=FPU=
  
grep -r <string> * --- To search for a string in folders
+
we assign op=OP_MDDS something to tell the hardware the current opcode
 +
and float64_add_next etc are used to compute the softvalues .. no calculations by hand
  
find ~ -name "*.*" --- to search for a file
+
===PLI===
  
 +
tf_putlongp() is a PLI function which puts a 64 int value to the current task or function
  
FPU
+
my_putlongp() is a helper function which takes in dest and value and stores it into that dest with some PLI function...
  
OBSERVATION
+
similarly for my_getlongp() and my_gettime()
  
ONE
 
  
 +
==DC SHELL==
  
8191 +  16646144 = 16646143
+
invoke dc_shell-t -64bit
fpu result : 4194559
+
fpu result : 4194559
+
fpu result : 4194559
+
fpu result : 4194559
+
fpu result : 4194559
+
fpu result : 4194559
+
fpu result : 16646143
+
  
 +
GUI
  
 +
gui_start
  
About & clocks or checks before result is correct
+
== GIT Commands - HOWTO ==
  
Works for both add and mul
+
git commit //adds the current changes to the local repo
  
TWO
+
git push //makes the changes to the server repo
  
Helper function : sf_float64_2op_check
+
git status // to check local rev compares to the main one
  
called whenever softfloat_check is called ... which is after a certain time after the posedge of clk
+
git pull //to sync with others
  
 +
git mv foo foo.cpp
  
THREE
+
git add foo.cpp
  
simple_result[state].when      = my_gettime();
+
git reset --hard HEAD // reset local repo
  simple_result[state].val        = ll_res;
+
  simple_result[state].op        = do_op;
+
  simple_result[state].in_use    = 1;
+
  
 +
git diff HEAD // diff from last commit
  
saves the pre comp values in a data structure struct Result_Entry... then checked using the fpu generated result....
+
=== TO COMMIT - TYPICAL WAY ===
  
3 1/2
+
git commit -a -m 'DEBUG: Defaulted to the rank test...'
  
struct result_entry saves values for checking including number of tests being run
 
  
 +
== NOTES on terminal commands and search tips ==
  
FOUR
 
  
change default test_type to Rank_test
+
NOTES on terminal commands and search tips
  
does tests based on probability generated by random number function
+
grep -r <string> * --- To search for a string in folders
  
 +
find ~ -name "*.*" --- to search for a file
  
FIVE
 
  
 +
=== to open a pdf ===
  
smul umul and other things are meant for int operations hence the name  of the function int2_op etc
+
evince <filename>.pdf
  
  
SIX
+
=== VI skills/UNIX ===
  
32 bit operations are meant to printed out with  masking being involved at some point
+
search replace
  
 +
http://www.thegeekstuff.com/2009/04/vi-vim-editor-search-and-replace-examples/
  
SEVEN
+
:%s/awesome/wonderful/gc
  
we assign op=OP_MDDS something to tell the hardware the current opcode
 
and float64_add_next etc are used to compute the softvalues .. so dont go looking around how to compute the value
 
  
op is an inout to the main fpu.v as well as fpu_result
+
Clear cmd by using ctrl+L instead of typing out clear
  
 +
To store simulation log in a file say log.txt
  
EIGHT
+
'''rake test:softfloat_tb >& log.txt'''
  
tf_putlongp() is a PLI function which puts a 64 int value to the current task or function
 
  
my_putlongp() is a helper function which takes in dest and value and stores it into that dest with some PLI function...
+
Cut or copy lines without counting the lines
  
similarly for my_getlongp() and my_gettime()
+
  - In normal mode, go to the beginning of the first mark ---> Type '''mk'''
 +
  - Go to the end of your selection                      ---> '''"ay'k''' (double quotes, <register name from a-z>, <y-yank or d-delete>, single quote, k
 +
 
 +
If you do "ad'k it will delete them from the current location and copy them into register a.
 +
 
 +
<number>dd - delete line
 +
<number>yy - yank  line
  
  
 +
==SSH multiple windows==
  
 +
ssh -X mada gnome-terminal &
  
  
next page on FPU
+
==My ~/.vimrc file==
  
 +
set ai
  
GIT Commands - HOWTO
+
syntax on
  
git commit //adds the current changes to the local repo
+
set ic
  
git push //makes the changes to the server repo
+
set hls
  
git status // to check local rev compares to the main one
+
set ruler
  
git pull //to sync with others
+
set history=50
  
git mv foo foo.cpp
+
set backspace=2
  
git add foo.cpp
+
===Alignment===
  
TO COMMIT - TYPICAL WAY
+
select block of text in visual mode
  
git commit -a -m 'DEBUG: Defaulted to the rank test...'
+
then gq to align
  
git reset --hard HEAD // reset local repo
+
===search tips===
  
git diff HEAD // diff from last commit
+
gd to search for word under cursor
  
 +
===copy & paste===
  
 +
to copy within blocks
 +
yi{}, yi(), yiw, etc - copy
 +
di{}, di(), diw, etc - cut
  
[[Terminal]]
+
ctrl+v for block mode vi
  
  
to open a pdf
+
===Working with multiple files===
  
evince <filename>.pdf
+
:e filename - Edit a file in a new buffer
 +
:bnext (or :bn) - go to next buffer
 +
:bprev (of :bp) - go to previous buffer
 +
:bd - delete a buffer (close a file)
 +
:sp filename - Open a file in a new buffer and split window
 +
ctrl+ws - Split windows
 +
ctrl+ww - switch between windows
 +
ctrl+wq - Quit a window
 +
ctrl+wv - Split windows vertically
 +
 
 +
:fixdel
 +
 
 +
 
 +
===Logging terminal outputs===
 +
 
 +
Nifty tool for logging the entire interactive session
 +
 
 +
 
 +
'''script <outfile.out>'''
 +
 
 +
ctrl+D to exit or end session

Latest revision as of 03:32, 12 September 2011

FPU

we assign op=OP_MDDS something to tell the hardware the current opcode and float64_add_next etc are used to compute the softvalues .. no calculations by hand

PLI

tf_putlongp() is a PLI function which puts a 64 int value to the current task or function

my_putlongp() is a helper function which takes in dest and value and stores it into that dest with some PLI function...

similarly for my_getlongp() and my_gettime()


DC SHELL

invoke dc_shell-t -64bit

GUI

gui_start

GIT Commands - HOWTO

git commit //adds the current changes to the local repo

git push //makes the changes to the server repo

git status // to check local rev compares to the main one

git pull //to sync with others

git mv foo foo.cpp

git add foo.cpp

git reset --hard HEAD // reset local repo

git diff HEAD // diff from last commit

TO COMMIT - TYPICAL WAY

git commit -a -m 'DEBUG: Defaulted to the rank test...'


NOTES on terminal commands and search tips

NOTES on terminal commands and search tips

grep -r <string> * --- To search for a string in folders

find ~ -name "*.*" --- to search for a file


to open a pdf

evince <filename>.pdf


VI skills/UNIX

search replace

http://www.thegeekstuff.com/2009/04/vi-vim-editor-search-and-replace-examples/

%s/awesome/wonderful/gc


Clear cmd by using ctrl+L instead of typing out clear

To store simulation log in a file say log.txt

rake test:softfloat_tb >& log.txt


Cut or copy lines without counting the lines

  - In normal mode, go to the beginning of the first mark ---> Type mk
  - Go to the end of your selection                       ---> "ay'k (double quotes, <register name from a-z>, <y-yank or d-delete>, single quote, k
  

If you do "ad'k it will delete them from the current location and copy them into register a.

<number>dd - delete line <number>yy - yank line


SSH multiple windows

ssh -X mada gnome-terminal &


My ~/.vimrc file

set ai

syntax on

set ic

set hls

set ruler

set history=50

set backspace=2

Alignment

select block of text in visual mode

then gq to align

search tips

gd to search for word under cursor

copy & paste

to copy within blocks yi{}, yi(), yiw, etc - copy di{}, di(), diw, etc - cut

ctrl+v for block mode vi


Working with multiple files

e filename - Edit a file in a new buffer
bnext (or :bn) - go to next buffer
bprev (of :bp) - go to previous buffer
bd - delete a buffer (close a file)
sp filename - Open a file in a new buffer and split window

ctrl+ws - Split windows ctrl+ww - switch between windows ctrl+wq - Quit a window ctrl+wv - Split windows vertically

fixdel


Logging terminal outputs

Nifty tool for logging the entire interactive session


script <outfile.out>

ctrl+D to exit or end session