URL
https://opencores.org/ocsvn/2d_game_console/2d_game_console/trunk
Subversion Repositories 2d_game_console
[/] [2d_game_console/] [trunk/] [Processor_Quartus/] [SRAM_Interface.v.bak] - Rev 2
Compare with Previous | Blame | View Log
module SRAM_Interface (
iDATA,
iADDR,
oWE_N,
oOE_N,
oCE_N,
oLB_N,
oUB_N,
oADDR,
oRED,
oGREEN,
oBLUE
);
input wire [19:0] iADDR;
input wire [15:0] iDATA;
input wire iCLK;
input wire iRST;
output reg [7:0] oRED;
output reg [7:0] oGREEN;
output reg [7:0] oBLUE;
output reg [19:0] oADDR;
output reg oWE_N;
output reg oOE_N;
output reg oCE_N;
output reg oLB_N;
output reg oUB_N;
assign oWE_N = 1'b1;
assign oOE_N = 1'b0;
assign oCE_N = 1'b0;
assign oLB_N = 1'b0;
assign oUB_N = 1'b0;
assign oADDR = iADDR;
assign oRED [2:0] = 3'b000;
assign oRED [7:3] = iDATA [4:0];
assign oGREEN [1:0] = 2'b00;
assign oGREEN [7:2] = iDATA [10:5];
assign oBLUE [2:0] = 3'b000;
assign oBLUE [7:3] = iDATA [15:11];
endmodule