Re: Simple 8253



On Jul 31, 11:20 am, "Symon" <symon_bre...@xxxxxxxxxxx> wrote:
 if write = '1' then
  irq <=0;
  reload <= dbus;
 elsif falling_edge(clock) then
  if counter = 0 then
   counter <= reload;
   irq <= '1';
  else
   counter <= counter - 1;
   irq <= '0'; -- AUTO EOI
  end if;
 end if;

I know I shouldn't do homework for people but what the hey. Use the write
signal as an asynchronous reset. Also, use numeric.std . It's lovely.

http://www.synthworks.com/papers/vhdl_math_tricks_mapld_2003.pdf

HTH, Syms.

Yes, it definately helps, thank you!

I'll see about that numeric.std

This isn't homework, I'm learning on my own, more or less from
scratch.
If I was a student, I would say so.
.



Relevant Pages

  • Re: A C showstopper
    ... int testFunction() ...     return 0; ... It passes two int values to ... I figured you wouldn't understand how to do the homework. ...
    (comp.lang.c)
  • Re: bit bashing
    ... This is not a homework question. ... That doesn't show you've analysed the original code, ... my teacher :-) ...
    (comp.lang.c)
  • Re: Checking a Number for Palindromic Behavior
    ... check a number for palindromic behavior (reading the same backwards ... This problem are probably homework ...   Let's not make the same mistake this time. ...
    (comp.lang.python)
  • Re: Reading a tab delimited text file.
    ... acquisition system into three vectors of doubles. ... a very terse way of doing it would be something like: ... haha, no this isn't homework. ...
    (comp.lang.python)
  • Re: basic vhdl queries
    ... declaration /without declaration ...     else b when ... elseif ... Oh dear, I detect homework. ...
    (comp.lang.vhdl)