Forum Discussion
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- Show us what you've done so far, and let us know what you're having problems with --- Quote End --- Thankz I have bn able to do smthng.I was able to turn on the led using switch 'swo' on the board using this code LIBRARY IEEE;USE IEEE.std_logic _1164.all;ENTITY streetlight IS PORT (D, resetn,clock: IN STD_LOGIC; Q :OUT STD_LOGIC);END flipflop;ARCHITECTURE Behaviour of streetlight IS BEGIN PROCESS (Clock,resetn)BEGINIF Clock 'EVENT AND CLOCK='1' THENIF resetn='0' THEN Q