Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // fifo control logic
- // register for read and write pointers
- always @(posedge clk)
- if (reset)
- begin
- w_ptr_reg <= 0;
- r_ptr_reg <= 0;
- full_reg <= 1'b0;
- empty_reg <= 1'b1;
- end
- else
- begin
- w_ptr_reg <= w_ptr_next;
- r_ptr_reg <= r_ptr_next;
- full_reg <= full_next;
- empty_reg <= empty_next;
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement