Presentation is loading. Please wait.

Presentation is loading. Please wait.

2’s Complement 4-Bit Saturator

Similar presentations


Presentation on theme: "2’s Complement 4-Bit Saturator"— Presentation transcript:

1 2’s Complement 4-Bit Saturator
Lab 4 2’s Complement 4-Bit Saturator

2 NASA Tech Briefs November 2001 A Y0 Y1 Y2 Y3 X0 X1 X2 B X3 X4 X5 c0 c1

3 Sat4bit.abl DECLARATIONS " INPUT PINS " X5..X0 PIN 6,7,11,5,72,71;
" INPUT PINS " X5..X0 PIN 6,7,11,5,72,71; X = [X5..X0]; " OUTPUT PINS " Y3..Y0 PIN 44,43,41,40; Y = [Y3..Y0]; c0 NODE; c1 NODE; s NODE; A3..A0 NODE; A = [A3..A0]; B3..B0 NODE; B = [B3..B0];

4 Add test vectors to .abl file test_vectors (X -> Y) -32 -> -8;
-17 -> -8; -9 -> -8; -8 -> -8; -7 -> -7; -6 -> -6; -5 -> -5; -4 -> -4; -3 -> -3; -2 -> -2; -1 -> -1; 0 -> 0; 1 -> 1; 2 -> 2; 3 -> 3; 4 -> 4; 5 -> 5; 6 -> 6; 7 -> 7; 8 -> 7; 16 -> 7; 31 -> 7; Add test vectors to .abl file

5 test_vectors (X -> Y)
Fill in this table in the Lab test_vectors (X -> Y) Switch settings LED1 – LED2 -32 -> -8; -17 -> -8; -9 -> -8; -8 -> -8; -7 -> -7; -6 -> -6; -5 -> -5; -4 -> -4; -3 -> -3; -2 -> -2; -1 -> -1; 0 -> 0; 1 -> 1; 2 -> 2; 3 -> 3; 4 -> 4; 5 -> 5; 6 -> 6; 7 -> 7; 8 -> 7; 16 -> 7; 31 -> 7;


Download ppt "2’s Complement 4-Bit Saturator"

Similar presentations


Ads by Google