Changes between Version 1 and Version 2 of SpecificationAdddaccu
- Timestamp:
- Apr 5, 2007, 11:25:26 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SpecificationAdddaccu
v1 v2 8 8 Le circuits possède 4 entrées : 9 9 * '''CK''' 10 * '''a \[3:0\]'''11 * '''b \[3:0\]'''10 * '''a[3-0]''' 11 * '''b[3-0]''' 12 12 * '''sel''' 13 13 14 14 Il possède une seule sortie : 15 * '''s \[3:0\]'''15 * '''s[3-0]''' 16 16 17 17 = Registres internes = 18 18 19 Le circuit contient un registre accumulateur '''accu \[3:0\],19 Le circuit contient un registre accumulateur '''accu[3-0], 20 20 dont l'écriture est contrôlée par le front montant du signal d'horloge '''CK'''. 21 21 22 22 = Comportement = 23 23 24 Si (sel == 0) x = a + b25 Sinon x = accu + b24 Si (sel == 0) '''x''' <= '''a''' + '''b''' 25 Sinon '''x''' <= '''accu''' + '''b''' 26 26 27 s = x 27 '''s''' <= '''x''' 28 28 29 Quand ( CK passe de 0 à 1) accu = x29 Quand ('''ck''' passe de 0 à 1) '''accu''' <= '''x''' 30 30 31 31