diff --git a/rtl/tb/hpdcache_test_driver.h b/rtl/tb/hpdcache_test_driver.h index 5ba91cd..4e37b68 100644 --- a/rtl/tb/hpdcache_test_driver.h +++ b/rtl/tb/hpdcache_test_driver.h @@ -63,7 +63,9 @@ class hpdcache_test_driver : public Driver private: +#if SC_VERSION_MAJOR < 3 SC_HAS_PROCESS(hpdcache_test_driver); +#endif typedef std::shared_ptr transaction_ptr; diff --git a/rtl/tb/hpdcache_test_mem_resp_model.h b/rtl/tb/hpdcache_test_mem_resp_model.h index 09c85c3..bca476d 100644 --- a/rtl/tb/hpdcache_test_mem_resp_model.h +++ b/rtl/tb/hpdcache_test_mem_resp_model.h @@ -89,7 +89,9 @@ class hpdcache_test_mem_resp_model : public sc_module, public hpdcache_test_mem_ private: +#if SC_VERSION_MAJOR < 3 SC_HAS_PROCESS(hpdcache_test_mem_resp_model); +#endif public: diff --git a/rtl/tb/hpdcache_test_scoreboard.h b/rtl/tb/hpdcache_test_scoreboard.h index 0958f23..5a0787c 100644 --- a/rtl/tb/hpdcache_test_scoreboard.h +++ b/rtl/tb/hpdcache_test_scoreboard.h @@ -329,7 +329,9 @@ class hpdcache_test_scoreboard : public sc_module sc_fifo inflight_amo_req_m; bool sc_is_atomic; +#if SC_VERSION_MAJOR < 3 SC_HAS_PROCESS(hpdcache_test_scoreboard); +#endif void perf_events_process() { diff --git a/rtl/tb/sequence_lib/hpdcache_test_random_seq.h b/rtl/tb/sequence_lib/hpdcache_test_random_seq.h index 41ba7c2..cddf4bc 100644 --- a/rtl/tb/sequence_lib/hpdcache_test_random_seq.h +++ b/rtl/tb/sequence_lib/hpdcache_test_random_seq.h @@ -133,7 +133,9 @@ class hpdcache_test_random_seq : public hpdcache_test_sequence scv_smart_ptr > size; const unsigned int HPDCACHE_REQ_DATA_BYTES = HPDCACHE_REQ_DATA_WIDTH/8; +#if SC_VERSION_MAJOR < 3 SC_HAS_PROCESS(hpdcache_test_random_seq); +#endif inline sc_bv create_random_data() { diff --git a/rtl/tb/sequence_lib/hpdcache_test_read_seq.h b/rtl/tb/sequence_lib/hpdcache_test_read_seq.h index 9e3ab47..5bb25f6 100644 --- a/rtl/tb/sequence_lib/hpdcache_test_read_seq.h +++ b/rtl/tb/sequence_lib/hpdcache_test_read_seq.h @@ -35,7 +35,7 @@ class hpdcache_test_read_seq : public hpdcache_test_sequence { public: - hpdcache_test_read_seq(sc_core::sc_module_name nm) : hpdcache_test_sequence(nm, "read_req") + hpdcache_test_read_seq(sc_core::sc_module_name nm) : hpdcache_test_sequence(nm, "read_seq") { SC_THREAD(run); sensitive << clk_i.pos(); @@ -57,7 +57,9 @@ class hpdcache_test_read_seq : public hpdcache_test_sequence scv_smart_ptr size; const unsigned int HPDCACHE_REQ_DATA_BYTES = HPDCACHE_REQ_DATA_WIDTH/8; +#if SC_VERSION_MAJOR < 3 SC_HAS_PROCESS(hpdcache_test_read_seq); +#endif inline uint32_t create_random_size(bool is_amo) { diff --git a/rtl/tb/sequence_lib/hpdcache_test_single_addr_seq.h b/rtl/tb/sequence_lib/hpdcache_test_single_addr_seq.h index 97fc509..c5d10bc 100644 --- a/rtl/tb/sequence_lib/hpdcache_test_single_addr_seq.h +++ b/rtl/tb/sequence_lib/hpdcache_test_single_addr_seq.h @@ -35,7 +35,7 @@ class hpdcache_test_single_addr_seq : public hpdcache_test_sequence public: hpdcache_test_single_addr_seq(sc_core::sc_module_name nm) - : hpdcache_test_sequence(nm, "random_seq") + : hpdcache_test_sequence(nm, "single_addr_seq") { SC_THREAD(run); sensitive << clk_i.pos(); @@ -102,7 +102,9 @@ class hpdcache_test_single_addr_seq : public hpdcache_test_sequence scv_smart_ptr > size; const unsigned int HPDCACHE_REQ_DATA_BYTES = HPDCACHE_REQ_DATA_WIDTH/8; +#if SC_VERSION_MAJOR < 3 SC_HAS_PROCESS(hpdcache_test_single_addr_seq); +#endif inline sc_bv create_random_data() { diff --git a/rtl/tb/sequence_lib/hpdcache_test_write_seq.h b/rtl/tb/sequence_lib/hpdcache_test_write_seq.h index 5ec426b..392553c 100644 --- a/rtl/tb/sequence_lib/hpdcache_test_write_seq.h +++ b/rtl/tb/sequence_lib/hpdcache_test_write_seq.h @@ -35,7 +35,7 @@ class hpdcache_test_write_seq : public hpdcache_test_sequence { public: - hpdcache_test_write_seq(sc_core::sc_module_name nm) : hpdcache_test_sequence(nm, "write_req") + hpdcache_test_write_seq(sc_core::sc_module_name nm) : hpdcache_test_sequence(nm, "write_seq") { SC_THREAD(run); sensitive << clk_i.pos(); @@ -57,7 +57,9 @@ class hpdcache_test_write_seq : public hpdcache_test_sequence scv_smart_ptr size; const unsigned int HPDCACHE_REQ_DATA_BYTES = HPDCACHE_REQ_DATA_WIDTH/8; +#if SC_VERSION_MAJOR < 3 SC_HAS_PROCESS(hpdcache_test_write_seq); +#endif inline req_data_t create_random_data() {