Rev | Line | |
---|
[59] | 1 | module test
|
---|
| 2 | (
|
---|
[107] | 3 | input wire clock,
|
---|
[84] | 4 | output wire [11:0] data
|
---|
[59] | 5 | );
|
---|
| 6 |
|
---|
[107] | 7 | reg [11:0] int_addr;
|
---|
[59] | 8 |
|
---|
[107] | 9 | always @(posedge clock)
|
---|
[59] | 10 | begin
|
---|
[107] | 11 | if (int_addr == 12'd2559)
|
---|
| 12 | begin
|
---|
| 13 | int_addr <= 12'd0;
|
---|
| 14 | end
|
---|
| 15 | else
|
---|
| 16 | begin
|
---|
| 17 | int_addr <= int_addr + 12'd1;
|
---|
| 18 | end
|
---|
[59] | 19 |
|
---|
| 20 | end
|
---|
| 21 |
|
---|
[107] | 22 | altsyncram #(
|
---|
| 23 | .address_aclr_a("NONE"),
|
---|
| 24 | .clock_enable_input_a("BYPASS"),
|
---|
| 25 | .clock_enable_output_a("BYPASS"),
|
---|
[108] | 26 | .init_file("test.mif"),
|
---|
[107] | 27 | .intended_device_family("Cyclone III"),
|
---|
| 28 | .lpm_hint("ENABLE_RUNTIME_MOD=NO"),
|
---|
| 29 | .lpm_type("altsyncram"),
|
---|
| 30 | .numwords_a(2560),
|
---|
| 31 | .operation_mode("ROM"),
|
---|
| 32 | .outdata_aclr_a("NONE"),
|
---|
| 33 | .outdata_reg_a("CLOCK0"),
|
---|
| 34 | .widthad_a(12),
|
---|
| 35 | .width_a(12),
|
---|
| 36 | .width_byteena_a(1)) test_rom_unit (
|
---|
| 37 | .clock0(clock),
|
---|
| 38 | .address_a(int_addr),
|
---|
| 39 | .q_a(data),
|
---|
| 40 | .aclr0(1'b0),
|
---|
| 41 | .aclr1(1'b0),
|
---|
| 42 | .address_b(1'b1),
|
---|
| 43 | .addressstall_a(1'b0),
|
---|
| 44 | .addressstall_b(1'b0),
|
---|
| 45 | .byteena_a(1'b1),
|
---|
| 46 | .byteena_b(1'b1),
|
---|
| 47 | .clock1(1'b1),
|
---|
| 48 | .clocken0(1'b1),
|
---|
| 49 | .clocken1(1'b1),
|
---|
| 50 | .clocken2(1'b1),
|
---|
| 51 | .clocken3(1'b1),
|
---|
| 52 | .data_a({12{1'b1}}),
|
---|
| 53 | .data_b(1'b1),
|
---|
| 54 | .eccstatus(),
|
---|
| 55 | .q_b(),
|
---|
| 56 | .rden_a(1'b1),
|
---|
| 57 | .rden_b(1'b1),
|
---|
| 58 | .wren_a(1'b0),
|
---|
| 59 | .wren_b(1'b0));
|
---|
[59] | 60 |
|
---|
| 61 | endmodule
|
---|
Note:
See
TracBrowser
for help on using the repository browser.