자 그럼 나만의 verilog 모듈 FIFORD를 함께 설계해보자. module FIFO (clk, srst, din, wren, full, dout,…
- User
자 그럼 나만의 verilog 모듈 FIFO_RD를 함께 설계해보자.
module FIFO (clk, srst, din, wr_en, full, dout, rd_en, empty); input clk; input srst; input [63:0]din; input wr_en; output full; output [63:0]dout; input rd_en; output empty;
module MY_BRAM (BRAM_PORTB_addr, BRAM_PORTB_clk, BRAM_PORTB_din, BRAM_PORTB_dout, BRAM_PORTB_en, BRAM_PORTB_rst, BRAM_PORTB_we); input [31:0]BRAM_PORTB_addr; input BRAM_PORTB_clk; input [63:0]BRAM_PORTB_din; output [63:0]BRAM_PORTB_dout; input BRAM_PORTB_en; input BRAM_PORTB_rst; input [7:0]BRAM_PORTB_we;
CDMA .cdma_introut(cdma_introut) (생략)
FIFO가 위에같이 포트가 나와있어. 우리의 FIFO_RD는 FIFO로부터 데이터를 읽어서 MY_BRAM의 차례대로 데이터를 넣을꺼야.
State Machine으로 구현되어 FIFO의 empty 여부를 확인하고 FIFO로부터 data를 읽어올꺼고, MY_BRAM에 Depth 16384가 꽉찰때까지 addr를 1씩 늘려갈거고, 그 후에는 대기하다가 CDMA의 데이터 전송이 완료되었다는 interrupt 신호를 받고 다시 처음 주소부터 데이터를 채워넣는걸 반복할꺼야.
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.