读、部分写数据方法以及相关装置

文档序号:1472133 发布日期:2020-02-21 浏览:16次 >En<

阅读说明:本技术 读、部分写数据方法以及相关装置 (Method for reading and partially writing data and related device ) 是由 罗日新 李渊 袁泉 于 2017-07-14 设计创作,主要内容包括:一种部分写数据方法,包括:缓存控制器(20,30,40,150,160)接收部分写请求(S61);所述部分写请求携带的数据的大小小于缓存行(211,212,213,311,312,313,411,412,413)可缓存数据的大小;将部分写请求携带的数据写入请求地址在缓存行(211,212,213,311,312,313,411,412,413)中对应的位置,更新缓存行(211,212,213,311,312,313,411,412,413)的写掩码(S65),以及更新缓存行(211,212,213,311,312,313,411,412,413)的状态(S69,S145)。一种读数据方法,以及相关装置。通过在缓存行(211,212,213,311,312,313,411,412,413)的状态中增加部分写状态,以及通过写掩码来表示该缓存行(211,212,213,311,312,313,411,412,413)中已被写入的数据的位置,使得缓存控制器(20,30,40,150,160)在部分写或读数据过程中,减少内存与高速缓冲存储器(172)的数据交换,提高高速缓冲存储器(172)的数据处理效率。(A method of partially writing data, comprising: the cache controller (20, 30, 40, 150, 160) receiving a partial write request (S61); the size of the data carried by the partial write request is smaller than the size of the cacheable data of the cache line (211, 212, 213, 311, 312, 313, 411, 412, 413); the method includes the steps of writing data carried by the partial write request to a corresponding location in the cache line (211, 212, 213, 311, 312, 313, 411, 412, 413), updating a write mask (S65) of the cache line (211, 212, 213, 311, 312, 313, 411, 412, 413), and updating a state (S69, S145) of the cache line (211, 212, 213, 311, 312, 313, 411, 412, 413). A method of reading data, and an associated apparatus. By adding a partial write state in the state of the cache line (211, 212, 213, 311, 312, 313, 411, 412, 413) and representing the position of the data which is written in the cache line (211, 212, 213, 311, 312, 313, 411, 412, 413) by a write mask, the cache controller (20, 30, 40, 150, 160) reduces data exchange between a memory and the cache memory (172) in the partial write or read process of the data, and improves the data processing efficiency of the cache memory (172).)

1页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:领域执行情境屏蔽和保存

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类