Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
hi
in vhdl the for loop statement is used for itreation
but the if statement is used for conditional check
i think if statement is not replace by for loop satatement
Added after 3 minutes:
in if statement the specified condition is check but in the for loop statement the loop is start...
In this program if 'run' mode is out(output port)
then u not put into the process() sensitivity list
or if run is variable then you use variable assignment statement for assiging the value.
like
run := en_aq;
it is depend upon the what is the data type of the din
if din is bit type then
if (Clk1'event and Clk1 = '1' )then
dout <= din and clk2
its working
and if the din is integer type or any other data type then u can use one clk as clk signal and other one is used as a enable...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.