University projects
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

71 lines
2.2 KiB

  1. Name counter_FSM;
  2. Partno tick;
  3. Date 7th November 2006;
  4. Revision 003;
  5. Designer Ben Francis, Sam Black, Sam Burras;
  6. Company University of Birmingham;
  7. Assembly 1;
  8. Location Earth;
  9. Device P18CV8;
  10. Format JEDEC;
  11. /**********************************************************************/
  12. /* This design uses a PEEL18CV8 in order to implement a 4-bit counter */
  13. /* */
  14. /* Device pin Layout ___________ */
  15. /* CLOCK |1 \/ 20| Vcc (power supply) */
  16. /* JAM_A |2 19| CLK */
  17. /* JAM_B |3 18| QA */
  18. /* JAM_C |4 17| QB */
  19. /* JAM_D |5 16| QC */
  20. /* JAM_ENABLE |6 15| QD */
  21. /* S |7 14| Z */
  22. /* R |8 13| */
  23. /* |9 12| */
  24. /* GND |10 11| */
  25. /* |___________| */
  26. /* */
  27. /**********************************************************************/
  28. /* Pin Assignments */
  29. /* Inputs */
  30. Pin 1 = CLOCK;
  31. Pin 2 = JAM_A;
  32. Pin 3 = JAM_B;
  33. Pin 4 = JAM_C;
  34. Pin 5 = JAM_D;
  35. Pin 6 = JAM_ENABLE;
  36. Pin 7 = S;
  37. Pin 8 = R;
  38. /* Ouputs */
  39. Pin 14 = Z;
  40. Pin 15 = QD;
  41. Pin 16 = QC;
  42. Pin 17 = QB;
  43. Pin 18 = QA;
  44. Pin 19 = CLK;
  45. /* Boolean algebra */
  46. QA.D = !QD & !QC & !JAM_ENABLE
  47. # QD & !QA & !JAM_ENABLE
  48. # QB & !JAM_ENABLE
  49. # JAM_ENABLE & JAM_A;
  50. QB.D = !QA & !QB & !JAM_ENABLE
  51. # QD & !QA & !JAM_ENABLE
  52. # JAM_ENABLE & JAM_B;
  53. QC.D = QC & QA & !JAM_ENABLE
  54. # !QC & !QA & !JAM_ENABLE
  55. # JAM_ENABLE & JAM_C;
  56. QD.D = QD & QC & !JAM_ENABLE
  57. # QA & !QC & !JAM_ENABLE
  58. # !QD & QB & !QA & !JAM_ENABLE
  59. # JAM_ENABLE & JAM_D;
  60. Z = QD & QC & !QB & QA;
  61. CLK = S # CLK & !R;