Changes between Version 20 and Version 21 of Writing Rules/RISC
- Timestamp:
- Feb 15, 2008, 4:17:07 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Writing Rules/RISC
v20 v21 60 60 This function performs one internal step of a long instruction. 61 61 62 * '''inline void getInstructionRequest (bool & req , enum !InsAccessType & type, uint32_t & address)''' 63 64 This function is used by the wrappers to obtain from the ISS the instruction request parameters. The '''req''' parameter is true when there is a valid request. The '''address''' parameter is the instruction address. The '''type''' parameter can have the values defined below: 65 {{{ 66 enum InsAccessType { 67 RC, // Read Instruction Cached 68 RU, // Read Instruction Uncached 69 } 70 }}} 62 * '''inline void getInstructionRequest (bool & req , uint32_t & address)''' 63 64 This function is used by the wrappers to obtain from the ISS the instruction request parameters. The '''req''' parameter is true when there is a valid request. The '''address''' parameter is the instruction address. 71 65 72 66 * '''inline void getDataRequest (bool &req , enum !DataAccessType & type, uint32_t & address, uint32_t & wdata)''' … … 262 256 { 263 257 bool ins_req ; 264 enum InsAccessType ins_type ;265 258 uint32_t ins_address ; 266 259 bool data_req ; … … 270 263 271 264 m_iss.getDataRequest( data_req, data_type, data_address, data_wdata ) ; 272 m_iss.getInstructionRequest( ins_req, ins_ type, ins_address ) ;265 m_iss.getInstructionRequest( ins_req, ins_address ) ; 273 266 274 267 m_ins_asked = ins_req ; … … 276 269 277 270 p_icache.req = ins_req ; 278 p_icache.type = ins_type ;279 271 p_icache.adr = ins_address; 280 272 p_dcache_req = data_req ; … … 314 306 class icache_request_t { 315 307 bool valid ; 316 enum InsAccessType type ;317 308 uint32_t address ; 318 309 }; … … 406 397 /////////// cache access 407 398 m_iss.getInstructionRequest(icache_req.valid, 408 icache_req.type,409 399 icache_req.address) ; 410 400 m_iss.getDataRequest(dcache_req.valid,