|
2 | 2 | // Licensed under the Apache License, Version 2.0, see LICENSE for details. |
3 | 3 | // SPDX-License-Identifier: Apache-2.0 |
4 | 4 |
|
5 | | -class ibex_hardware_triggers_asm_program_gen extends ibex_asm_program_gen; |
6 | | - |
7 | | - `uvm_object_utils(ibex_hardware_triggers_asm_program_gen) |
8 | | - `uvm_object_new |
9 | | - |
10 | | - // Same implementation as the parent class, except substitute for our custom debug_rom class. |
11 | | - virtual function void gen_debug_rom(int hart); |
12 | | - `uvm_info(`gfn, "Creating debug ROM", UVM_LOW) |
13 | | - debug_rom = ibex_hardware_triggers_debug_rom_gen:: |
14 | | - type_id::create("debug_rom", , {"uvm_test_top", ".", `gfn}); |
15 | | - debug_rom.cfg = cfg; |
16 | | - debug_rom.hart = hart; |
17 | | - debug_rom.gen_program(); |
18 | | - instr_stream = {instr_stream, debug_rom.instr_stream}; |
19 | | - endfunction |
20 | | - |
21 | | -endclass |
22 | | - |
23 | | - |
24 | 5 | class ibex_hardware_triggers_debug_rom_gen extends riscv_debug_rom_gen; |
25 | 6 |
|
26 | 7 | `uvm_object_utils(ibex_hardware_triggers_debug_rom_gen) |
@@ -123,6 +104,25 @@ class ibex_hardware_triggers_debug_rom_gen extends riscv_debug_rom_gen; |
123 | 104 |
|
124 | 105 | endclass |
125 | 106 |
|
| 107 | +class ibex_hardware_triggers_asm_program_gen extends ibex_asm_program_gen; |
| 108 | + |
| 109 | + `uvm_object_utils(ibex_hardware_triggers_asm_program_gen) |
| 110 | + `uvm_object_new |
| 111 | + |
| 112 | + // Same implementation as the parent class, except substitute for our custom debug_rom class. |
| 113 | + virtual function void gen_debug_rom(int hart); |
| 114 | + `uvm_info(`gfn, "Creating debug ROM", UVM_LOW) |
| 115 | + debug_rom = ibex_hardware_triggers_debug_rom_gen:: |
| 116 | + type_id::create("debug_rom", , {"uvm_test_top", ".", `gfn}); |
| 117 | + debug_rom.cfg = cfg; |
| 118 | + debug_rom.hart = hart; |
| 119 | + debug_rom.gen_program(); |
| 120 | + instr_stream = {instr_stream, debug_rom.instr_stream}; |
| 121 | + endfunction |
| 122 | + |
| 123 | +endclass |
| 124 | + |
| 125 | + |
126 | 126 | class ibex_hardware_triggers_illegal_instr extends riscv_illegal_instr; |
127 | 127 |
|
128 | 128 | `uvm_object_utils(ibex_hardware_triggers_illegal_instr) |
|
0 commit comments