A
Atul.ee
Guest
Hi,
I am want to declare a port for memory array which is constructed
using flip-flops.
For example:
module test_mode( clk, address, input_bus, mem_out)
input enable;
input [3:0] address;
input [7:0] input_bus;
output [7:0] mem_out [0:15];
reg [7:0] mem_out [0:15];
always @ (posedge clk )
begin
mem_out[address] <= input_bus;
end
endmodule
Please suggest the proper syntax for the synthesizable code.
Regards,
Atul
I am want to declare a port for memory array which is constructed
using flip-flops.
For example:
module test_mode( clk, address, input_bus, mem_out)
input enable;
input [3:0] address;
input [7:0] input_bus;
output [7:0] mem_out [0:15];
reg [7:0] mem_out [0:15];
always @ (posedge clk )
begin
mem_out[address] <= input_bus;
end
endmodule
Please suggest the proper syntax for the synthesizable code.
Regards,
Atul