labprac_1

labprac_1 - MODULE labprac_1 T TITLE 'labprac_1'...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
MODULE labprac_1 M TITLE 'labprac_1' T DECLARATIONS " Input pins EN pin; "Enable EM pin; "Emergency 0->Norm 1->Flash DI pin; "Direction 0->Left 1->Right CLOCK pin; C " Output pins - active low for common anode 7-segment display !L2,!L1,!L0,!R2,!R1,!R0 pin istype 'com'; Q3. .Q0 pin istype 'reg'; QALL = [Q3. .Q0]; x = .X.; x TRUTH_TABLE ([EN,EM,DI,Q3,Q2,Q1,Q0]:>[Q3,Q2,Q1,Q0]) [ 0, x, x, x, x, x, x]:>[ 1, 0, 1, 0]; "enable off [ 1, 0, 0, 0, 0, 0, 0]:>[ 0, 0, 0, 1]; [ 1, 0, 0, 0, 0, 0, 1]:>[ 0, 0, 1, 0]; [ 1, 0, 0, 0, 0, 1, 0]:>[ 0, 0, 1, 1]; [ 1, 0, 0, 0, 0, 1, 1]:>[ 0, 0, 0, 0]; [ 1, 0, 0, 0, 1, 0, 0]:>[ 0, 0, 0, 0]; [ 1, 0, 0, 0, 1, 0, 1]:>[ 0, 0, 0, 0]; [ 1, 0, 0, 0, 1, 1, 0]:>[ 0, 0, 0, 0]; [ 1, 0, 0, 0, 1, 1, 1]:>[ 0, 0, 0, 0]; [ 1, 0, 0, 1, 0, 0, 0]:>[ 0, 0, 0, 0]; [ 1, 0, 0, 1, 0, 0, 1]:>[ 0, 0, 0, 0]; [ 1, 0, 0, 1, 0, 1, 0]:>[ 0, 0, 0, 0]; [ 1, 0, 0, 1, 0, 1, 1]:>[ 0, 0, 0, 0]; [ 1, 0, 0, 1, 1, 0, 0]:>[ 0, 0, 0, 0]; [ 1, 0, 0, 1, 1, 0, 1]:>[ 0, 0, 0, 0]; [ 1, 0, 0, 1, 1, 1, 0]:>[ 0, 0, 0, 0];
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 08/31/2011 for the course ECE 12512 taught by Professor Johnation during the Fall '10 term at IUPUC.

Page1 / 2

labprac_1 - MODULE labprac_1 T TITLE 'labprac_1'...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online