Tests: Rename t_extend_c_class

This commit is contained in:
Wilson Snyder 2025-03-28 17:05:55 -04:00
parent 8e7f29b07e
commit 6edf2f80a2
4 changed files with 10 additions and 10 deletions

View File

@ -9,7 +9,7 @@
import vltest_bootstrap import vltest_bootstrap
test.scenarios('simulator') test.scenarios('vlt')
test.compile() test.compile()

View File

@ -9,7 +9,7 @@
import vltest_bootstrap import vltest_bootstrap
test.scenarios('vlt_all') test.scenarios('vlt')
test.compile(make_flags=["CPPFLAGS_ADD=-I" + test.t_dir]) test.compile(make_flags=["CPPFLAGS_ADD=-I" + test.t_dir])

View File

@ -14,7 +14,7 @@ module t (/*AUTOARG*/
reg [31:0] in; reg [31:0] in;
wire [31:0] out; wire [31:0] out;
t_extend_class_v sub (.in(in), .out(out)); t_extend_c_class_v sub (.in(in), .out(out));
always @ (posedge clk) begin always @ (posedge clk) begin
cyc <= cyc + 8'd1; cyc <= cyc + 8'd1;
@ -31,7 +31,7 @@ module t (/*AUTOARG*/
end end
endmodule endmodule
module t_extend_class_v (/*AUTOARG*/ module t_extend_c_class_v (/*AUTOARG*/
// Outputs // Outputs
out, out,
// Inputs // Inputs
@ -47,11 +47,11 @@ module t_extend_class_v (/*AUTOARG*/
end end
`systemc_header `systemc_header
#include "t_extend_class_c.h" // Header for contained object #include "t_extend_c_class_c.h" // Header for contained object
`systemc_interface `systemc_interface
t_extend_class_c* m_myobjp; // Pointer to object we are embedding t_extend_c_class_c* m_myobjp; // Pointer to object we are embedding
`systemc_ctor `systemc_ctor
m_myobjp = new t_extend_class_c(); // Construct contained object m_myobjp = new t_extend_c_class_c(); // Construct contained object
`systemc_dtor `systemc_dtor
delete m_myobjp; // Destruct contained object delete m_myobjp; // Destruct contained object
`verilog `verilog

View File

@ -6,11 +6,11 @@
// any use, without warranty, 2006-2009 by Wilson Snyder. // any use, without warranty, 2006-2009 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
class t_extend_class_c { class t_extend_c_class_c {
public: public:
// CONSTRUCTORS // CONSTRUCTORS
t_extend_class_c() = default; t_extend_c_class_c() = default;
~t_extend_class_c() = default; ~t_extend_c_class_c() = default;
// METHODS // METHODS
// This function will be called from an instance created in Verilog // This function will be called from an instance created in Verilog
uint32_t my_math(uint32_t in) { return in + 1; } uint32_t my_math(uint32_t in) { return in + 1; }