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
test.scenarios('simulator')
test.scenarios('vlt')
test.compile()

View File

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

View File

@ -14,7 +14,7 @@ module t (/*AUTOARG*/
reg [31:0] in;
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
cyc <= cyc + 8'd1;
@ -31,7 +31,7 @@ module t (/*AUTOARG*/
end
endmodule
module t_extend_class_v (/*AUTOARG*/
module t_extend_c_class_v (/*AUTOARG*/
// Outputs
out,
// Inputs
@ -47,11 +47,11 @@ module t_extend_class_v (/*AUTOARG*/
end
`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
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
m_myobjp = new t_extend_class_c(); // Construct contained object
m_myobjp = new t_extend_c_class_c(); // Construct contained object
`systemc_dtor
delete m_myobjp; // Destruct contained object
`verilog

View File

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