- Interface:
 - sc_fifo_in_if, sc_fifo_out_if
 - Channel:
 - sc_fifo
 - Port:
 - sc_port
 
星期四, 10月 23, 2008
SystemC注意事項
限定用法
標籤:
【學校、課業、論文】
Kdesvn ssh+svn 不用一直輸入密碼的方法
首先先確認 Server(注意是Server) 上的幾件事
- /home/user mode 不能是 777 , 最少要755
 - /home/user/.ssh 設 700
 - /home/user/.ssh/authorized_keys 設600 (這個檔沒有沒關係, 等等會產生, 要注意).
 
- ssh-keygen -> Enter -> Enter .... 不用管一直按就對了.
 - ssh-keygen -t dsa -> Enter -> Enter .... 不用管一直按就對了.
 - 把產生id_dsa.pub id_rsa id_dsa  copy 到你要連的 Server /home/user/.ssh/.
 - 到Server上 cat id_dsa.pub >> authorized_keys (/home/user/.ssh/目錄下).
 - 確認Server端檔案權限.
 
標籤:
【Linux 應用】
Adjtimex in NTP
NTP(Network Time Protocol,見 RFC 1305
Build NTP時發現,NTPClient 用到這個參數
- 在Linux: 底下 為 __adjtimex(), 不過目前Linux kernel 兩者通用.
 - uClibc :底下為 adjtimex()
 
- 中華電信 Time Server
 time.stdtime.gov.tw
clock.stdtime.gov.tw
tick.stdtime.gov.tw
tock.stdtime.gov.tw
watch.stdtime.gov.tw
time.chttl.com.tw 停用time_a.chttl.com.tw 停用
Reference:
- busybox-1.6.1/docs/busybox.net/tinyutils.html
 - http://doolittle.icarus.com/ntpclient/
 - ntpclient_2000_339.tar.gz
 
標籤:
【Linux 應用】
星期二, 10月 14, 2008
File Sync
Allway Sync : Windows 下免費的 Sync 檔案軟體
- HTTP:http://allwaysync.com/zh-cht/translate.html
 - 說明:http://playpcesor.blogspot.com/2007/03/allway-sync-558.html
 
- 安裝時都下一步下一步到結束.
 - Language ->Chinese(Traditional). 就變中文了.
 - 使用方式請看---->說明
 
標籤:
【Windows應用】
星期四, 10月 09, 2008
利用 gettimeofday抓 us 級 時間差
#include <sys/time.h>
#include <stdio.h>
int main(){
  struct timeval tv, tv2;
  unsigned long long start_utime, end_utime;
  gettimeofday(&tv,NULL);
  start_utime = tv.tv_sec * 1000000 + tv.tv_usec;
  usleep(1000);
  gettimeofday(&tv2,NULL);
  end_utime = tv2.tv_sec * 1000000 + tv2.tv_usec;
  printf(" runtime = %llu\n", end_utime - start_utime );
}
For Cyril:
這個可以抓到 us 級.. 不過精度的話我不確定,要再查Kernel 是怎麼運作.原則上是10 - 30ms , 要看kernel jiffes 的值. 不過低於 這個值得話應該就是軟體精度問題.
不過平常我是類似這樣用的
標籤:
【Programming】
訂閱:
意見 (Atom)