Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

PC Device communication howto

Hi, I'm a C programmer which is suppose to learn VHDL in 21 days;p. We're developing a device which is connected to 32 bit Atom processor with PCIExpress bus. We have Altera Aria II Gx FPGA. The device must do very data operation on 256bits of data. Then it should return it back to the Atom. For the device driver purposes I also need status register, and same configuration registers, which can be even bigger then 2kB. So my question is which components should i use to not make my boss upset;). What I've done before writing this post, is communication with internal dual port ram with use of DMA. It's all been done by SOBC. I can read data written to this memory on the port B. I wan't to read this data as soon as it's possible, and i'm thinking of copying address from port A to port B and make a process be sensitive on WENA signal, so I would read it just after it's written. I'm thinking of making clk_b <= not clk_a; so I'll be able to read data a half clock period after it's written, and write data back to port B being sure that there's nothing to read at the moment (

ADDR_B <= ADDR_A when not WENB else ADDR_PROCESSED_DATA;

WENB <= not WEN_A and not CS_A and HAVE_SOMETHING_TO_WRITE;

CLK_B <= not CLK_A;

What do You think? Thank You very much for any suggestions.

18 Replies