📄 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 + -