?? memory.v
字號:
/*`timescale 1ns/1psmodule memory(mem_out,mem_in,mem_address,RW); parameter width=8; output[width-1:0] mem_out; input [width-1:0] mem_in; input [width-1:0] mem_address; input RW; reg [width-1:0] mem_out; reg [width-1:0] mem[255:0]; always @(mem_in or mem_address or RW) begin if(!RW) mem_out=mem[mem_address]; else mem[mem_address]=mem_in; endendmodule*/`timescale 1ns/1psmodule memory(mem_data,mem_address,CS,WRITE,READ); parameter width=8; inout [width-1:0] mem_data; //?????? input [7:0] mem_address; //?????? input CS,WRITE,READ; //???? wire [width-1:0] mem_in; // reg [width-1:0] mem_out; //???? reg [width-1:0] mem[255:0]; //256
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -