原创 OpenMIPS VHDL study學習筆記第一天 -- Feb 25

Mar 8: variable只存在於定義他的process裏面。但是signal則是所有process公用,因爲他是真實存在的。 (有待考證:感覺不對) 因爲iu.vhd裏面有個v的變量,而在rtl結構圖裏面是有v.e.reg之類的值

原创 OpenRISC和Orpsoc在DE2-115上的的bootup實驗

Update: Feb 17,2014 今天又重新試了一次bootup,。 按照Github鏈接DE2-115,先synthesize和burn:(解決了一個locale的問題) openrisc@openrisc-VirtualBox:

原创 Ch8.3: find all the subsets of a set

In this problem, We can still use the power of BINARY number to represent the nth number is shown or not. For example:

原创 從Nachos轉向ucore/xv6

今天和課程圖譜的PKU大牛聊了下。對於學習OS,他推薦MIT的xv6,因爲相對於UCB的NACHOS,它更加全面而且麻雀雖小五臟俱全。加上參考資料更多,而且是用C寫的,所以更好的做lab,有自動批改的script。MIT 6.828 op

原创 Verilog下的image processing---第一話---讀取旋轉並寫入

爲了實現硬件加速而把C code轉化爲Verilog。 參考的是: http://beiciliang.weebly.com/uploads/2/4/3/1/24316476/verilog.pdf 因爲FPGA上的VGA或者ARM-M3

原创 UCB CS162:operating system In Java with NACHOS Lesson 1

先把nachos在virtualbox裏面跑起來才行。 雖然已經有了mips compiler,但是java jdk沒裝。可以按照這個鏈接做:點擊打開鏈接 如果什麼都沒有改動的話,直接make然後nachos,會出來這樣就是對的。 現

原创 CMPE244 Project idea: openMV or cmuCAM

這學期上的CMPE244: embedded software是一門嵌入式,FreeRTOS, ARM cortex M3的實驗課程。用的處理器是NXP的LPC1758 這幾天在考慮課程project做什麼,準備接着master proj

原创 Lesson1: Udacity parallel programming 學習筆記

In this lesson, we learned the 4 partitions of CUDA program and how to utilize the block, thread for parallel programmi

原创 SystemVerilog/Verilog的實數輸入輸出和常數:Cordic或者直接unsynthesizable的C表達

因爲在圖像處理的時候需要用到很多filter,其中Gaussian filter是一個是exponential function,所以要用到e和**。 正規的做法是用Cordic或者xilinx/altera的math lib。 cor

原创 Ch8.8: 8 queen problem

In order to solve this problem efficiently, need to use backtracking method instead of iterations. Aka: Backtracking is

原创 Lesson 2: Udacity Intro to Parallel Programming

lesson 1的一一對應的GPU programming,比如matrix 相乘,從彩色圖變成灰階圖。這些都是一一對應的算法。 在這一課,主要講的是:spencil 以及各種map的parallel programming。 注意,

原创 Altera筆記:Introduction to Parallel Computing with OpenCL

   今天註冊了altera的training課程,想看看OpenCL寫FPGA是怎麼寫(只知道用HDL寫FPGA)。    heterogeneous computing 需要在CPU DSP上面寫sequential code,同時在

原创 Verilog下的圖像處理--第二話--downsample

在FPGA上做圖像處理時,常需要down sample來減少計算量。 如上圖所示:row和column都是隔1個格取值,所以大小是原來的25%。 在C++裏面直接用 for(r=0; r<row; r+2){ for(c=0; c<co

原创 SIFT學習--第一話---高斯濾波器

Python code to demonstrate separable Gaussian filter on test128x128.bmp. from CS150 Fall 2013 安裝好Canopy之後就可以執行了。注意全路徑還是

原创 複習一下dfs和bfs 用java

dfs 和 bfs都是用來找從source 到 target的path的算法。 dfs用的是recursion,bfs則用queue。而且bfs可以找出shortest path。 /* tony * Apr 28, 2014 * p