Changeset 117 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Special_Register_unit/include/SPR.h
- Timestamp:
- May 16, 2009, 4:42:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Special_Register_unit/include/SPR.h
r101 r117 545 545 // [0][21] CID 546 546 //---------------------------------------------------------- 547 class CID : public GENERIC 548 { 549 public : CID (uint32_t num_front_end=0, uint32_t num_context=0,const Parameters * param=NULL) : GENERIC (num_front_end,num_context,param) {}; 550 }; 551 552 //---------------------------------------------------------- 553 // [0][22] TID 554 //---------------------------------------------------------- 555 class TID : public GENERIC 556 { 557 public : TID (uint32_t num_front_end=0, uint32_t num_context=0,const Parameters * param=NULL) : GENERIC (num_front_end,num_context,param) {}; 558 }; 559 560 //---------------------------------------------------------- 561 // [0][23] TSR 547 class CID : public morpheo::behavioural::SPR 548 { 549 private: const Tspr_t _cpu_id : 32; // cpu_id reset value 550 public : Tspr_t cpu_id : 32; 551 552 public : CID (uint32_t num_front_end=0, uint32_t num_context=0,const Parameters * param=NULL): 553 _cpu_id ((param==NULL)?0:param->_translate_num_context_to_num_thread[num_front_end][num_context]) 554 {}; 555 public : void reset (void ) 556 { 557 cpu_id = _cpu_id; 558 }; 559 public : Tspr_t read (void ) 560 { 561 return ((cpu_id << 0)); 562 }; 563 public : void write (Tspr_t x) 564 { 565 cpu_id = x >> 0; 566 }; 567 }; 568 569 //---------------------------------------------------------- 570 // [0][22] TID - Thread Id 571 //---------------------------------------------------------- 572 class TID : public morpheo::behavioural::SPR 573 { 574 public : Tspr_t thread_id : 32; 575 576 public : TID (uint32_t num_front_end=0, uint32_t num_context=0,const Parameters * param=NULL) 577 {}; 578 public : void reset (void ) 579 { 580 }; 581 public : Tspr_t read (void ) 582 { 583 return ((thread_id << 0)); 584 }; 585 public : void write (Tspr_t x) 586 { 587 thread_id = x >> 0; 588 }; 589 }; 590 591 //---------------------------------------------------------- 592 // [0][23] TSR - Thread Status Register 562 593 //---------------------------------------------------------- 563 594 class TSR : public GENERIC
Note: See TracChangeset
for help on using the changeset viewer.