Forum Discussion
Altera_Forum
Honored Contributor
15 years agoSimple Key-Led design does not work
Hello Im using a EPM3064ATC CPLD. My design has 8 switches and two leds. If a button is pressed, then a led should be on. I already tested different variants of code but had no sucess. ...
Altera_Forum
Honored Contributor
15 years agoHello aprado
Thank you for your help. It isreally frustrating ans as you say weird:) I also tested with registering but no success:
module TestSwitch (clk, Switch, Led); input clk; input Switch; output Led;
reg Keys;
@always @(Switch) Keys = Switch;
assign Led = (Keys | Keys); // does not work assign Led = Keys; // that works end Both Leds and all keys are ok as i can control the leds by every key using statement e.g.: assign Led[1] = Switch[1]; assign Led[1] = Switch[2]; assign Led[1] = Switch[3]; ... It seems that signal tap is not supported for this device. Friendly regards Andreas