hi everyone
i made same project on this thread but with differnce code my code like this
http://forum.allaboutcircuits.com/showthread.php?t=30141
Here is the result of the simulation
[/url][/IMG]
http://im33.gulfup.com/LbmSF.png
i want to check it is correct or not
can u tell me if it not correct answer what is the right answer?
i hope to get any reply before 24 hour bec. it must be sumitted twm.
thankx
w8 w8 w8
i made same project on this thread but with differnce code my code like this
http://forum.allaboutcircuits.com/showthread.php?t=30141
Rich (BB code):
module Seven_Seg_Display_V2001 (
output [0: 6] Display,
input [3: 0] BCD
);
// abc_defg
parameter BLANK = 7'b000_0000;
parameter ZERO = 7'b111_1110; // h7e
parameter ONE = 7'b011_0000; // h30
parameter TWO = 7'b110_1101; // h6d
parameter THREE = 7'b111_1001; // h79
parameter FOUR = 7'b011_0011; // h33
parameter FIVE = 7'b101_1011; // h5b
parameter SIX = 7'b101_1111; // h5f
parameter SEVEN = 7'b111_0000; // h70
parameter EIGHT = 7'b111_1111; // h7f
parameter NINE = 7'b111_1011; // h7b
/*always @ (BCD)
case (BCD)
0: Display = ZERO;
1: Display = ONE;
2: Display = TWO;
3: Display = THREE;
4: Display = FOUR;
5: Display = FIVE;
6: Display = SIX;
7: Display = SEVEN;
8: Display = EIGHT;
9: Display = NINE;
default: Display = BLANK;
endcase*/
endmodule
module t_Seven_Seg_Display_V2001 ();
wire [6: 0] Display;
reg [3: 0] BCD;
parameter BLANK = 7'b000_0000;
parameter ZERO = 7'b111_1110; // h7e
parameter ONE = 7'b011_0000; // h30
parameter TWO = 7'b110_1101; // h6d
parameter THREE = 7'b111_1001; // h79
parameter FOUR = 7'b011_0011; // h33
parameter FIVE = 7'b101_1011; // h5b
parameter SIX = 7'b001_1111; // h1f
parameter SEVEN = 7'b111_0000; // h70
parameter EIGHT = 7'b111_1111; // h7f
parameter NINE = 7'b111_1011; // h7b
initial #120 $finish;
initial fork
#10 BCD = 0;
#20 BCD = 1;
#30 BCD = 2;
#40 BCD = 3;
#50 BCD = 4;
#60 BCD = 5;
#70 BCD = 6;
#80 BCD = 7;
#90 BCD = 8;
#100 BCD = 9;
join
Seven_Seg_Display_V2001 M0 (Display, BCD);
initial begin
$monitor(" BLANK=%b, ZERO=%b,ONE=%b,TWO=%b, THREE=%b,FOUR=%b,FIVE=%b, SIX=%b,SEVEN=%b, EIGHT=%b,NINE=%b",BLANK,ZERO,ONE,TWO,THREE,FOUR,FIVE,SIX,SEVEN,EIGHT,NINE);
end
endmodule
Here is the result of the simulation
http://im33.gulfup.com/LbmSF.png
i want to check it is correct or not
can u tell me if it not correct answer what is the right answer?
i hope to get any reply before 24 hour bec. it must be sumitted twm.
thankx
w8 w8 w8