Skip to content

Commit

Permalink
renamed sc_register_field to sc_register_indexed
Browse files Browse the repository at this point in the history
  • Loading branch information
eyck committed Sep 20, 2017
1 parent 70cc395 commit 4bc2664
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions incl/sysc/register.h
Original file line number Diff line number Diff line change
Expand Up @@ -244,14 +244,14 @@ using sc_register = impl::sc_register<typename impl::helper<DATATYPE>::Type>;


template<typename DATATYPE, size_t SIZE, size_t START=0>
struct sc_register_field: public indexed_resource_access_if {
struct sc_register_indexed: public indexed_resource_access_if {

using BASE_DATA_TYPE = typename impl::helper<DATATYPE>::Type;

using value_type = sc_register<DATATYPE>;
using pointer = value_type*;

sc_register_field(sc_core::sc_module_name nm, std::array<DATATYPE, SIZE>& storage, const DATATYPE reset_val, resetable& owner,
sc_register_indexed(sc_core::sc_module_name nm, std::array<DATATYPE, SIZE>& storage, const DATATYPE reset_val, resetable& owner,
BASE_DATA_TYPE rdmask = std::numeric_limits<BASE_DATA_TYPE>::is_signed?-1:std::numeric_limits<BASE_DATA_TYPE>::max(),
BASE_DATA_TYPE wrmask = std::numeric_limits<BASE_DATA_TYPE>::is_signed?-1:std::numeric_limits<BASE_DATA_TYPE>::max())
{
Expand All @@ -263,7 +263,7 @@ struct sc_register_field: public indexed_resource_access_if {
}
}

~sc_register_field(){
~sc_register_indexed(){
for(size_t idx=START; idx<(START+SIZE); ++idx){
(_reg_field+idx)->~sc_register<DATATYPE>();
}
Expand Down

0 comments on commit 4bc2664

Please sign in to comment.