no use no use 1/1 no use no use
changin fifo ram styles
by ali_asadzadeh on Nov 16, 2009
Posts: 4
Joined: Mar 30, 2009
Last seen: Feb 23, 2022
i want to change the code in pci_ram_16x40d in pci_bridge32 project that used xilinx RAM16X1D ram style.

here is my code

module pci_ram_16x40d (data_out, we, data_in, read_address, write_address, wclk);
parameter addr_width = 4 ;
output [39:0] data_out;
input we, wclk;
input [39:0] data_in;
input [addr_width - 1:0] write_address, read_address;

wire [3:0] waddr = write_address ;
wire [3:0] raddr = read_address ;

reg [39:0] my_memory [0:16];

always@(posedge wclk)
if (we==1'b1)

reg [39:0] myoutdata;
always@(posedge wclk)
assign data_out= myoutdata;

I want to know am i doing the rith way or am i missing something. I'm newbie in verilog.

thanks in advance.
no use no use 1/1 no use no use
© copyright 1999-2022, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.