This repository has been archived on 2023-04-15. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
vivado-202304/projects/duifei/duifei_cmos/rtl/Sisyif_src/mod2_rom.v
T
josh 2e92604bfb add xc7z100 modules; add duifei_cmos;
the modification to dl84_k7_cal_coarse is not complete
2023-03-30 17:18:05 +08:00

72 lines
1.2 KiB
Verilog

`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 15:35:03 01/27/2022
// Design Name:
// Module Name: mod2_rom
// Project Name:
// Target Devices:
// Tool versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module mod2_rom(
input sysclk,
input [11 : 0] addra,
output reg[13:0] douta
);
reg[11:0] addr=0;
always@(posedge sysclk)begin
addr<=addra%25;
end
always@(posedge sysclk)begin
case(addr)
0 : douta <= 1 ;
1 : douta <= 25 ;
2 : douta <= 25 ;
3 : douta <= 25 ;
4 : douta <= 25 ;
5 : douta <= 5 ;
6 : douta <= 25 ;
7 : douta <= 25 ;
8 : douta <= 25 ;
9 : douta <= 25 ;
10 : douta <= 5 ;
11 : douta <= 25 ;
12 : douta <= 25 ;
13 : douta <= 25 ;
14 : douta <= 25 ;
15 : douta <= 5 ;
16 : douta <= 25 ;
17 : douta <= 25 ;
18 : douta <= 25 ;
19 : douta <= 25 ;
20 : douta <= 5 ;
21 : douta <= 25 ;
22 : douta <= 25 ;
23 : douta <= 25 ;
24 : douta <= 25 ;
default:douta <= douta ;
endcase
end
endmodule