1
0
mirror of https://github.com/myhdl/myhdl.git synced 2025-01-24 21:52:56 +08:00
Jan Decaluwe 3b4e7dc293 examples
2010-07-02 13:24:04 +02:00

33 lines
382 B
Verilog

// File: rom.v
// Generated by MyHDL 0.7dev
// Date: Fri Jul 2 13:23:51 2010
`timescale 1ns/10ps
module rom (
dout,
addr
);
// ROM model
output [7:0] dout;
reg [7:0] dout;
input [3:0] addr;
always @(addr) begin: ROM_READ
case (addr)
0: dout <= 17;
1: dout <= 134;
2: dout <= 52;
default: dout <= 9;
endcase
end
endmodule