B
Bill
Guest
I am very new to FPGA programming. I'm using "FPGA Prototyping by
VHDL examples" to learn VHDL. I've gotten up to section 4.5.3 FIFO
buffer, and am having trouble understanding what might happen in the
code...
In the 'register file' section, array_reg(w_ptr_reg) is set to w_data.
In the fifo control section, w_ptr_reg is set to w_ptr_next.
Both events happen when clk'event and clk='1'.
Is there any guarantee as to which one happens first? How do I know
whether array_reg(???) will use w_ptr_reg as the index, or w_ptr_next?
If there is anyone who is working through this same book, I'd like to
start an email correspondence.
Bill
VHDL examples" to learn VHDL. I've gotten up to section 4.5.3 FIFO
buffer, and am having trouble understanding what might happen in the
code...
In the 'register file' section, array_reg(w_ptr_reg) is set to w_data.
In the fifo control section, w_ptr_reg is set to w_ptr_next.
Both events happen when clk'event and clk='1'.
Is there any guarantee as to which one happens first? How do I know
whether array_reg(???) will use w_ptr_reg as the index, or w_ptr_next?
If there is anyone who is working through this same book, I'd like to
start an email correspondence.
Bill