mirror of https://github.com/YosysHQ/yosys.git
23 lines
370 B
Plaintext
23 lines
370 B
Plaintext
library(supergate) {
|
|
cell(fulladder) {
|
|
area : 8 ;
|
|
pin(A) {
|
|
direction : input ;
|
|
}
|
|
pin(B) {
|
|
direction : input ;
|
|
}
|
|
pin(CI) {
|
|
direction : input ;
|
|
}
|
|
pin(CO) {
|
|
direction : output ;
|
|
function : (((A * B)+(B * CI))+(CI * A)) ;
|
|
}
|
|
pin(Y) {
|
|
direction : output ;
|
|
function : ((A^B)^CI) ;
|
|
}
|
|
}
|
|
}
|