module rom(
output reg [7:0] data,
input wire [7:0] addr,
input wire clk
);
parameter width = 8;
parameter bits = 5;
reg [width-1:0] rom [2**bits-1:0];
initial $readmemb("rom.data", rom);
always@(posedge clk)
begin
data <= rom[addr];
end
endmodule
-
Notifications
You must be signed in to change notification settings - Fork 9
⚙Hardware Synthesis Laboratory Using Verilog
License
tongplw/HW-Syn-Lab
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
⚙Hardware Synthesis Laboratory Using Verilog
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published