SystemC 3.0.0
Accellera SystemC proof-of-concept library
Public Types | List of all members
sc_dt::sc_big_op_info< WL, SL, WR, SR > Class Template Reference

#include <sysc/datatypes/int/sc_vector_utils.h>

Public Types

enum  {
  signed_result = SL || SR , left_count = SC_DIGIT_COUNT(WL+!SL) , left_extra = !SL && SR , left_hod = SC_DIGIT_INDEX(WL+!SL) ,
  right_count = SC_DIGIT_COUNT(WR+!SR) , right_extra = SL && !SR , right_hod = SC_DIGIT_INDEX(WR+!SR) , add_bits = VEC_MAX(WL+left_extra,WR+right_extra)+1 ,
  bit_bits = VEC_MAX(WL+left_extra,WR+right_extra) , div_bits = WL+SR , mod_bits = VEC_MIN(WL,WR+right_extra) , mul_bits = WL+WR ,
  sub_bits = VEC_MAX(WL+left_extra,WR+right_extra)+1 , add_hod = SC_DIGIT_INDEX(add_bits-1) , bit_hod = SC_DIGIT_INDEX(bit_bits-1) , div_hod = SC_DIGIT_INDEX(div_bits-1) ,
  mod_hod = SC_DIGIT_INDEX(mod_bits-1) , mul_hod = SC_DIGIT_INDEX(mul_bits-1) , sub_hod = SC_DIGIT_INDEX(sub_bits-1) , add_mask = SC_BIT_MASK1(add_bits+!signed_result) ,
  bit_mask = SC_BIT_MASK1(bit_bits+!signed_result) , div_mask = SC_BIT_MASK1(div_bits+!signed_result) , mod_mask = SC_BIT_MASK1(mod_bits+!signed_result) , mul_mask = SC_BIT_MASK1(mul_bits+!signed_result) ,
  sub_mask = SC_BIT_MASK1(sub_bits+!signed_result) , shorter_length = SC_DIGIT_COUNT( VEC_MIN(WL+!SL,WR+!SR) )
}
 
typedef sc_big_op_type< WL, SL >::base_type left_base
 
typedef sc_big_op_type< WL, SL >::top_type left_op
 
typedef sc_big_op_type< WR, SR >::base_type right_base
 
typedef sc_big_op_type< WR, SR >::top_type right_op
 
typedef sc_big_op_type< add_bits, signed_result >::top_type add_result
 
typedef sc_big_op_type< bit_bits, signed_result >::top_type bit_result
 
typedef sc_big_op_type< div_bits, signed_result >::top_type div_result
 
typedef sc_big_op_type< mod_bits, signed_result >::top_type mod_result
 
typedef sc_big_op_type< mul_bits, signed_result >::top_type mul_result
 
typedef sc_big_op_type< sub_bits, signed_result >::top_type sub_result
 

Detailed Description

template<int WL, bool SL, int WR, bool SR>
class sc_dt::sc_big_op_info< WL, SL, WR, SR >

Definition at line 77 of file sc_vector_utils.h.

Member Typedef Documentation

◆ add_result

template<int WL, bool SL, int WR, bool SR>
typedef sc_big_op_type<add_bits,signed_result>::top_type sc_dt::sc_big_op_info< WL, SL, WR, SR >::add_result

Definition at line 122 of file sc_vector_utils.h.

◆ bit_result

template<int WL, bool SL, int WR, bool SR>
typedef sc_big_op_type<bit_bits,signed_result>::top_type sc_dt::sc_big_op_info< WL, SL, WR, SR >::bit_result

Definition at line 123 of file sc_vector_utils.h.

◆ div_result

template<int WL, bool SL, int WR, bool SR>
typedef sc_big_op_type<div_bits,signed_result>::top_type sc_dt::sc_big_op_info< WL, SL, WR, SR >::div_result

Definition at line 124 of file sc_vector_utils.h.

◆ left_base

template<int WL, bool SL, int WR, bool SR>
typedef sc_big_op_type<WL,SL>::base_type sc_dt::sc_big_op_info< WL, SL, WR, SR >::left_base

Definition at line 116 of file sc_vector_utils.h.

◆ left_op

template<int WL, bool SL, int WR, bool SR>
typedef sc_big_op_type<WL,SL>::top_type sc_dt::sc_big_op_info< WL, SL, WR, SR >::left_op

Definition at line 117 of file sc_vector_utils.h.

◆ mod_result

template<int WL, bool SL, int WR, bool SR>
typedef sc_big_op_type<mod_bits,signed_result>::top_type sc_dt::sc_big_op_info< WL, SL, WR, SR >::mod_result

Definition at line 125 of file sc_vector_utils.h.

◆ mul_result

template<int WL, bool SL, int WR, bool SR>
typedef sc_big_op_type<mul_bits,signed_result>::top_type sc_dt::sc_big_op_info< WL, SL, WR, SR >::mul_result

Definition at line 126 of file sc_vector_utils.h.

◆ right_base

template<int WL, bool SL, int WR, bool SR>
typedef sc_big_op_type<WR,SR>::base_type sc_dt::sc_big_op_info< WL, SL, WR, SR >::right_base

Definition at line 118 of file sc_vector_utils.h.

◆ right_op

template<int WL, bool SL, int WR, bool SR>
typedef sc_big_op_type<WR,SR>::top_type sc_dt::sc_big_op_info< WL, SL, WR, SR >::right_op

Definition at line 119 of file sc_vector_utils.h.

◆ sub_result

template<int WL, bool SL, int WR, bool SR>
typedef sc_big_op_type<sub_bits,signed_result>::top_type sc_dt::sc_big_op_info< WL, SL, WR, SR >::sub_result

Definition at line 127 of file sc_vector_utils.h.

Member Enumeration Documentation

◆ anonymous enum

template<int WL, bool SL, int WR, bool SR>
anonymous enum
Enumerator
signed_result 
left_count 
left_extra 
left_hod 
right_count 
right_extra 
right_hod 
add_bits 
bit_bits 
div_bits 
mod_bits 
mul_bits 
sub_bits 
add_hod 
bit_hod 
div_hod 
mod_hod 
mul_hod 
sub_hod 
add_mask 
bit_mask 
div_mask 
mod_mask 
mul_mask 
sub_mask 
shorter_length 

Definition at line 80 of file sc_vector_utils.h.


The documentation for this class was generated from the following file: