[SOLVED] Can i lit multiple LEDs for one operation in Spatran 3E kit

Status
Not open for further replies.

moonnightingale

Full Member level 6
Joined
Sep 17, 2009
Messages
362
Helped
5
Reputation
10
Reaction score
5
Trophy points
1,298
Activity points
3,832
This is my code

module leds(out_c,out_d,in_b,in_a,in_e);
output out_c,out_d;
input in_a,in_b,in_e;
assign out_c=in_a&in_b;
assign out_d=in_a|in_e;
endmodule


UCF file

NET "in_a" LOC="D18"| IOSTANDARD = LVTTL | PULLDOWN ;
NET "in_b" LOC="K17"| IOSTANDARD = LVTTL | PULLDOWN ;
NET "in_e" LOC="H13"| IOSTANDARD = LVTTL | PULLDOWN ;
NET "out_c" LOC="F12"| IOSTANDARD = LVCMOS33 | SLEW = FAST | DRIVE = 8 ;
NET "out_d" LOC="F9"| IOSTANDARD = LVCMOS33 | SLEW = FAST | DRIVE = 8 ;
NET "out_d" LOC="E9"| IOSTANDARD = LVCMOS33 | SLEW = FAST | DRIVE = 8 ;
NET "out_d" LOC="D11"| IOSTANDARD = LVCMOS33 | SLEW = FAST | DRIVE = 8 ;


i want multiple LEDs to glow for out put of "d" but only D11 is glowing. why it is so
 

out_d can only be one physical pin, if you want more use

out_d=in_a|in_e;
out_d1=in_a|in_e;
out_d2=in_a|in_e;

NET "out_d" LOC="F9"| IOSTANDARD = LVCMOS33 | SLEW = FAST | DRIVE = 8 ;
NET "out_d1" LOC="E9"| IOSTANDARD = LVCMOS33 | SLEW = FAST | DRIVE = 8 ;
NET "out_d2" LOC="D11"| IOSTANDARD = LVCMOS33 | SLEW = FAST | DRIVE = 8 ;

Alex
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…