# Pastebin C1t3meH0 reg [7:0] mem_1[0:511]; reg [8:0] memadr_1; reg [8:0] memadr_2; always @(posedge sys_clk) begin if (usb_buf_we) mem_1[usb_buf_adr] <= usb_buf_dat_w; memadr_1 <= usb_buf_adr; end always @(posedge usb_usb_48_clk) begin if (usb_usb_port_we) mem_1[usb_usb_port_adr] <= usb_usb_port_dat_w; memadr_2 <= usb_usb_port_adr; end assign usb_buf_dat_r = mem_1[memadr_1]; assign usb_usb_port_dat_r = mem_1[memadr_2];