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.
For that sequence, the code could be:
process(clk)
begin
if clk = '1' and clk'event then
cnt_int <= cnt + 1;
if up = '1' then
if cnt_int = 2 then
cnt_int <= (others => '0');
up <= '0';
end if;
else -- down
if cnt_int = 1...
another possibility could be to consider the counter as a state machine with two states: up and down. It could be something like that
process(clk)
begin
if clk = '1' and clk'event then
if up = '1' then
cnt <= cnt + 1;
if cnt = 1 then
up <= '0'...
Hello everyone!
I am working with a Zynq device and I have already finished the development cycle, so I already have a .BIN file that works. This file is stored in a QSPI Flash memory that is loaded through the JTAG of the Zynq. Right now, I program the Flash from the SDK or the TCL console, so...
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.