verilog的簡要教程 基本邏輯門,例如a n d、o r和n a n d等都內置在語言中。 • 用戶定義原語( U D P)創建的靈活性。用戶定義的原語既可以是組合邏輯原語,也可以 是時序邏輯原語。 • 開關級基本結構模型,例如p m o s 和n m o s等也被內置在語言中。
上傳時間: 2017-05-05
上傳用戶:1583060504
幫助系統工程師,設計者,管理者在電視廣播上可以順利的傳輸類比訊號至數位訊號之基礎技術
上傳時間: 2014-01-07
上傳用戶:lht618
設計編程實現矩陣相乘的Strassen算法,具體要求: (1)矩陣階數n由用戶輸入(注意n非 2k 時的處理) (2)n階矩陣A、B調用隨機函數自動生成,限定矩陣元素在0-10之間 (3)輸出A、B、C=A*B (4)請在實驗報告中“程序設計(方案)說明部分”寫明你如何實現矩陣劃分、矩陣結果合并 (5)請在源代碼中對主要函數功能、變量、語句進行注釋 (6)請采用結構程序設計方法或面向對象程序設計方法,對各子功能用函數實現,不要一個主函數完成所有工作
上傳時間: 2014-01-13
上傳用戶:ruixue198909
離散卷積計算 實驗步驟: 主界面下進入實驗五的“離散卷積計算”子實驗, 輸入有限長序列 x(n) 輸入有限長序列 h(n) 鼠標單擊確定按鈕,以數值和圖形兩種方式顯示卷積結果
上傳時間: 2013-12-17
上傳用戶:zhaiye
實現了蟻群算法求解TSP問題。注釋詳細 function[R_best,L_best,L_ave,Shortest_Route,Shortest_Length]=ACATSP(C,NC_max,m,Alpha,Beta,Rho,Q) ------------------------------------------------------------------------- 主要符號說明 C n個城市的坐標,n×2的矩陣 NC_max最大迭代次數 m螞蟻個數 Alpha表征信息素重要程度的參數 Beta表征啟發式因子重要程度的參數 Rho信息素蒸發系數 Q信息素增加強度系數 R_best各代最佳路線 L_best各代最佳路線的長度 =========================================================================
標簽: Shortest_Length Shortest_Route function R_best
上傳時間: 2014-01-17
上傳用戶:lunshaomo
檔案傳輸協定(FTP)為目前相當普遍與廣泛使用之網路 應用。然而在傳統檔案傳輸協定之設計下,資料 傳輸透過Out-of-Band(OOB)之機制,意即透過控制頻道(control channel)傳輸指令 ,而實際資料 傳輸則另外透過特定之通訊埠以及TCP連 線,進行 傳送。如此一來 可確保資料 傳輸之可靠與穩定性,但另一方面則會造成傳輸率 (throughput)效能低落 。因此,在本計劃中,我們透過使用SCTP協定並利 用多重串 流 (multi-stream)機制,達到以In-Band機制達成Out-of-Band傳輸之相同效果。在本研究之最後亦透過於開放原始碼系統實作並實際量 測,証
上傳時間: 2013-12-10
上傳用戶:2467478207
Implementation of Edmonds Karp algorithm that calculates maxFlow of graph. Input: For each test case, the first line contains the number of vertices (n) and the number of arcs (m). Then, there exist m lines, one for each arc (source vertex, ending vertex and arc weight, separated by a space). The nodes are numbered from 1 to n. The node 1 and node n should be in different sets. There are no more than 30 arcs and 15 nodes. The arc weights vary between 1 and 1 000 000. Output: The output is a single line for each case, with the corresponding minimum size cut. Example: Input: 7 11 1 2 3 1 4 3 2 3 4 3 1 3 3 4 1 3 5 2 4 6 6 4 5 2 5 2 1 5 7 1 6 7 9 Output: 5
標簽: Implementation calculates algorithm Edmonds
上傳時間: 2014-01-04
上傳用戶:kiklkook
#include <iostream> using namespace std; int main(){ int t; cin>>t; while(t--){ long long n; cin>>n; if(n%2==1) cout<<(n*n-1)/4<<endl; else if (n%4==0) cout <<(n*n)/4-1<<endl; else{ if(n==2) cout<<1<<endl; else{ long long k=n/2-1; cout <<k*k+2*k-3<<endl; } } } return 0; }
標簽: 天津大學acm4022 代碼
上傳時間: 2015-04-20
上傳用戶:nr607
#include <iostream> using namespace std; class Student { public: Student(int, int); int num; int grade; }; Student::Student(int n, int g) { num = n; grade = g; } int maxGradeIndex(Student* s) { int maxGrade, index = 0, i = 0; maxGrade = s[0].grade; for (i = 0; i<5; i++) { if (s[i].grade > maxGrade) { maxGrade = s[i].grade; index = i; } } return index; } int main() { Student a[5] = { Student(1, 86), Student(2, 60), Student(3, 72), Student(4, 95), Student(5, 66) }; int maxGradeStNum = maxGradeIndex(a); cout << "成績最好學生的學號是:" << a[maxGradeStNum].num << endl; cout << "成績最好學生的成績是:" << a[maxGradeStNum].grade << endl; getchar(); return 0; }
上傳時間: 2016-04-23
上傳用戶:burt1025
實驗源代碼 //Warshall.cpp #include<stdio.h> void warshall(int k,int n) { int i , j, t; int temp[20][20]; for(int a=0;a<k;a++) { printf("請輸入矩陣第%d 行元素:",a); for(int b=0;b<n;b++) { scanf ("%d",&temp[a][b]); } } for(i=0;i<k;i++){ for( j=0;j<k;j++){ if(temp[ j][i]==1) { for(t=0;t<n;t++) { temp[ j][t]=temp[i][t]||temp[ j][t]; } } } } printf("可傳遞閉包關系矩陣是:\n"); for(i=0;i<k;i++) { for( j=0;j<n;j++) { printf("%d", temp[i][ j]); } printf("\n"); } } void main() { printf("利用 Warshall 算法求二元關系的可傳遞閉包\n"); void warshall(int,int); int k , n; printf("請輸入矩陣的行數 i: "); scanf("%d",&k); 四川大學實驗報告 printf("請輸入矩陣的列數 j: "); scanf("%d",&n); warshall(k,n); }
上傳時間: 2016-06-27
上傳用戶:梁雪文以