Computer system for engine control with a program memory and a data memory
Separating non-volatile program and data memories in engine control systems allows simultaneous execution and storage, preventing interruptions and ensuring timely program execution, thus avoiding mechanical malfunctions and noise.
Patent Information
- Application Number
- DE102021107045
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-03-10
- Filing Date
- 2021-03-22
- Publication Date
- 2024-11-21
- Estimated Expiration
- 2041-03-22
AI Technical Summary
Existing computer systems for engine control using flash memory as non-volatile storage cause interruptions in real-time applications due to the need to wait for data writing, leading to mechanical malfunctions and noise, as they cannot access the memory during programming.
Physically separate the non-volatile program memory from the data memory, allowing simultaneous execution and storage of intermediate results in a second data storage without interrupting the processor, using a programming unit to manage both memories independently.
Enables continuous operation of the computer system during data storage, preventing program flow interruptions and ensuring timely execution of engine control programs.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Field of invention
[0001] The invention relates to a method for operating a computer system for an engine control system with a program memory and a data memory and to a corresponding device. General introduction
[0002] Computer systems for engine control systems with non-volatile memory are used in a wide variety of applications in vehicles. Many of these engine control applications are time-critical and potentially safety-relevant. Access time and programming time depend heavily on the type of non-volatile memory used.
[0003] If a computer system only has flash memory as non-volatile memory and intermediate calculation results need to be stored in non-volatile memory, the processor cannot continue working during this time because it cannot access the non-volatile memory during programming. This is because saving the data requires writing an entire block to the flash memory. Therefore, the computer has to wait for the completion of the writing to the non-volatile memory, i.e. the flash memory, for the duration of the save process. This can lead to real-time application programs for motor control that are executed by the computer system being critically disrupted in terms of undesirable effects on the motor control. This can cause mechanical malfunctions in the motors and / or noise generation.The goal must be to ensure that such a halt to the process is not necessary. State of the art
[0004] ISO 26262 Part 4-6 and EN 61 508-3 provide experts with a clear understanding of what constitutes safety-critical software. In this context, the document presented here refers, for example, to the Wikipedia page https: / / de.wikipedia.org / wiki / Sicherheitsanforderungsstufe. Such software is generally subject to certain real-time requirements.
[0005] US 8 018 790 B2 is known from the prior art. This describes a memory system having a serial port that communicates with a non-volatile memory array, and logic that uses a serial interface to control the transfer of encoded data from the array to the serial port.
[0006] Furthermore, US 6 950 337 B2 is known. This describes a non-volatile memory device with a memory matrix of cells organized into memory banks and read / write selectors associated with the respective cells, which alternately connect the cells to two sets of sense amplifiers.
[0007] US 10 403 342 B2 discloses a hybrid flash memory device, e.g., a floating-gate memory, used in electronic devices such as mobile phones. It comprises a data flash memory containing individual memory cells and a support circuit containing decoders, sense amplifiers, and logic circuits.
[0008] US 2017 358 357 A1 discloses a memory device comprising a memory array and a row decoder connected to the memory array. The column decoder is connected to the memory array. A programming unit is connected to an erasing unit.
[0009] US 2013 054 905 A1 discloses a method for performing concurrent memory operations in a memory device used in a computer system, e.g., a laptop. It involves dealing with virtual memory addresses corresponding to physical memory locations where a write operation is performed.
[0010] A synchronous flash memory device, e.g., SDRAM, is known from JP 3 779 209 B B2. The synchronous flash memory device comprises arrays of non-volatile memory cells in addressable blocks. The non-volatile memory cells are coupled to a circuit that can simultaneously read first and second data or write first and second data blocks.
[0011] US Pat. No. 6,512,693 B2 discloses a semiconductor device, such as an EEPROM flash memory, comprising a data erasing section. The data erasing section erases data from a selected block in a core selected by a core selection section.
[0012] US Pat. No. 7,911,824 B2 discloses a non-volatile memory device, e.g., a phase-change type memory device. The non-volatile memory device controls a write-in switch and a read-out switch to connect a read-out memory and a write-in unit to a specific memory cell array at a predefined time.
[0013] From US 7 079 417 B2 an electrically programmable read-only flash memory device with a local row decoder circuit for controlling word lines is known, which serves to separate read and write control signals.
[0014] From US 6 628 563 B1 an integrated memory circuit, e.g. a flash memory for computers, is known which controls the selection of the row of the block arrangement and the digital data transmission between the bit lines in order to enable simultaneous transmission between the memory cells.
[0015] US 2017 199 666 A1 discloses a device for performing concurrent multithreaded access to different partitions of a non-volatile memory. The device comprises a controller for providing each memory access command to a local controller associated with a corresponding target partition.
[0016] US Pat. No. 7,095,648 B2 discloses a magnetoresistive memory cell array for a random access memory. The magnetoresistive memory cell array has column and row select decoders for reading cells and writing to other cells in the column or row, respectively, with the memory cells arranged in an array.
[0017] From US 9 734 911 B2 a mass storage system for a host system, e.g. a tablet computer, is known with a controller that reads or writes data completely in parallel into several flash memory chips or independently and asynchronously into each chip depending on the request.
[0018] From US 5 959 887 A, a memory cell array of a non-volatile semiconductor memory is known which is divided into two memory cell blocks in order to carry out dual operation.
[0019] US Pat. No. 6,260,103 B1 discloses a read / write memory for a cellular telephone, comprising read / write amplifiers coupled to the read / write memory layer during the read operation. The read / write memory includes verification read / write amplifiers coupled to the write / write memory layer during the write or erase operation of the memory.
[0020] From US 5 587 948 a non-volatile solid-state memory for NAND-type Flash EEPROM in a memory card is known, which comprises a selector circuit for selecting a memory cell connected to each bit line formed by a first and a second NAND gate array
[0021] A non-volatile semiconductor memory device, e.g., an MRAM, is known from US 2006 077 737 A1. The non-volatile semiconductor memory device has a control circuit that is selectively activated to amplify the current flowing through the amplifier circuit and the precharge circuit through a selected memory cell row.
[0022] EP 0 914 659 A1 discloses a non-volatile memory, e.g. an EEPROM or a flash memory, which has two arrays with a single set of address and data lines that share a common row decoder, sense amplifiers, data I / O buffers and control logic, but have separate column decoders, column selection circuits and data latches.
[0023] A flash memory with background operation is known from US Pat. No. 5,847,994 A. The flash memory comprises a memory cell array with subblocks containing memory cells arranged in rows and columns, corresponding to which word lines, source lines, sub-bit lines, and select gates are provided.
[0024] From EP 0 944 906 A1 a flash memory semiconductor chip is known, in particular for use in mobile phones, which comprises a dual-port structure and a selection circuit that enables read operations in one array sector while another sector is being programmed or erased.
[0025] From US 6 292 392 B1 a control circuit for non-volatile semiconductor memory for storing, reading and checking data is known, which comprises a sense amplifier in each cell array with which several operations are carried out simultaneously.
[0026] From US 2011 060 868 A1, a non-volatile memory, e.g. a NAND flash memory, is known for use in, for example, computer systems, which has dedicated resources, e.g. read controllers, each of which enables a type of memory operation on a specific bank within banks.
[0027] EP 0 165 822 A discloses a memory access control which increases the utilization and enables an improved throughput of the data bus lines between the main memory and the memory control unit.
[0028] From US 2002 / 0 166 061 A1 a flash memory protection scheme for a secure common BIOS implementation in personal computers with an embedded controller is known.
[0029] None of these documents solve the problem described with the features of the document presented here. Task
[0030] The proposal is therefore based on the task of creating a solution that does not have the above-mentioned disadvantage of the prior art and has further advantages.
[0031] This object is achieved by a method according to claim 1 and a device according to claim 2. Solution to the task
[0032] The non-volatile program memory is physically separated from the non-volatile data memory for the data that must be stored in a non-volatile memory during the program execution while controlling the motor (M) and / or regulation. This allows the data to be stored in the non-volatile, second data memory (2 nd MEM) without the computer (RE) and thus the program having to be stopped, since the first data memory (1 stMEM) with the program instructions and the program data that does not need to be reprogrammed is still available to the computer (RE).
[0033] The computer system thus comprises a computer (RE), for example a microcontroller core, a first, non-volatile, writable data memory (1 st MEM) and a second, non-volatile, writable data memory (2 nd MEM) and a programming unit (PROG). The programming unit (PROG) can, if required, implement a method for programming the first non-volatile, writable data memory (1 st MEM) with data and / or program instructions for the computer (RE). The programming unit (PRG) can, if required, execute the procedure for programming the first non-volatile, writable data memory (1 st MEM) also for programming the second non-volatile, writable data memory (2 ndMEM). This means that the programming unit (PRG) can be used to selectively program the first data memory (1 st MEM) and for optional programming of the second data memory (2 nd MEM). In the first non-volatile data memory (1 st MEM) preferably contains instruction codes that the computer (RE) can access via a data bus (DB) and that the computer (RE) can execute. The computer (RE) of the computer system reads these instruction codes in the first data memory (1 st MEM) and executes them during the execution of the engine control program of the engine (M). The command codes form the computer program that the computer (RE) executes. In the first non-volatile data memory (1 st MEM) therefore preferably contains the first program data, which may be read and processed by the computer (RE). In the second non-volatile data memory (2 ndMEM), in contrast, preferably contains second program data, which may be read and processed by the computer (RE) of the computer system. Preferably, the second non-volatile data memory (2 nd MEM) no command codes, so that when writing to the second non-volatile data memory (2 nd MEM) the computer (RE) of the computer system does not have to wait for the completion of the writing process of the programming unit (PRG) in order to read from the first non-volatile data memory (1 st MEM) to get the next command code.
[0034] A corresponding method based on such a computer system for operating the computer system for controlling the engine (M) preferably comprises the steps: A) Storing a date as a non-volatile second program date in the second non-volatile data memory (2 nd MEM), B) Reading and executing one or more instruction codes from the first non-volatile data memory (1 st MEM) and / or reading and processing one or more first program data from the first non-volatile data memory (1 st MEM) while saving the date in the second non-volatile data memory (2 nd MEM), whereby during the execution of the engine control program of the engine (M) consisting of instruction codes from the first non-volatile data memory (1 st MEM) and possibly first program data in the first non-volatile data memory (1 st MEM) no data writes to the first non-volatile data memory (1 st MEM).
[0035] The associated device is a computer system for controlling the engine (M) for use in vehicles. The computer system comprises a computer (RE), a first non-volatile, writable data memory (1 st MEM), a second non-volatile, writable data memory (2 nd MEM) and a programming unit (PRG). The programming unit (PRG) can implement a method for programming the first non-volatile, writable data memory (1 st MEM). The programming unit (PRG) can execute the procedure for programming the first non-volatile, writable data memory (1 st MEM) also for programming the second non-volatile, writable data memory (2 nd MEM). The programming unit (PRG) is thus used for selectively programming the first data memory (1 st MEM) and for optional programming of the second data memory (2 ndMEM). In the first non-volatile data memory (1 st MEM) contains instruction codes that are read and executed by the computer (RE). The first non-volatile data memory (1 st MEM) may also contain initial program data that the computer (RE) can read and process and which is preferably not reprogrammed during program execution. In the second non-volatile data memory (2 nd MEM) can contain second program data that the computer (RE) can read and process and that can be reprogrammed during program execution. The programming unit (PRG) can store a data item as a non-volatile second program data item in the second non-volatile data memory (2 nd MEM). The computer (RE) reads one or more instruction codes from the first non-volatile data memory (1 stMEM) and / or executes one or more instruction codes from the first non-volatile data memory (1 st MEM), while at the same time the programming unit (PRG) stores the said date in the second non-volatile data memory (2 nd MEM). The computer (RE) can, if necessary, read one or more initial program data from the first non-volatile data memory (1 st MEM). During the execution of the engine control program of the engine (M), in particular by the computer (RE), the programming unit (PRG) does not write data to the first non-volatile data memory (1 st MEM). The program for controlling the motor (M) includes command codes and, if applicable, initial program data, which are located in the first non-volatile data memory (1 st MEM). Description of the figure The Fig. 1 is roughly simplified for better clarity. Fig. Figure 1 shows the computer system described above. The computer system includes the computer (RE), which can be a microcontroller, for example. The computer (RE) controls a driver (TR) for controlling the motor (M). The computer accesses the first, non-volatile memory (1) via a data bus (DB). st MEM). The computer (RE) reads from the first non-volatile data memory (1 st MEM) reads the command codes and program data. The computer (RE) executes these command codes after reading them. The goal is for the command codes to be processed immediately when the computer (RE) executes the engine control programs.
[0036] The computer (RE) can use a programming signal (PC), which can also be transmitted to the programming device (PRG) via the data bus (DB), to instruct the programming device (PRG) to program a date in the first non-volatile data memory (1 stMEM) or in the second non-volatile data memory (2 nd MEM). In the example of the Fig. 1 the programming device (PRG) programs the date via a programming data bus (PDB) into the respective non-volatile data memory (1 st MEN, 2 nd MEM). In the example of the Fig. 1, the programming device (PRG) signals to the computer (RE) via a memory access signal (MAS) which data memory (1 st MEN, 2 nd MEM) the programming device (PRG) is currently accessing. If the computer (RE) wants to access a data memory of the data memories (1 st MEN, 2 nd MEM) that is currently being programmed with a data item by the programming device (PRG), the computer (RE) must wait until the programming device (PRG) releases this data memory. The programming device (PRG preferably also signals this release to the computer via the memory access signal.
[0037] The Fig. The device described in Figure 1 is only an example. The claims are decisive for the claim. Advantage
[0038] Such a method for operating a computer system has the advantage that, firstly, two flash memories can be used for implementation. Secondly, interruption of the program execution due to write operations is avoided.
Claims
[1] Method for operating a computer system for controlling a motor (M), - wherein the computer system comprises a computer (RE) and - whereby the computer (RE) controls a driver (TR) for controlling the motor (M) and - wherein the computer system comprises a first non-volatile, writable data memory (1 st MEM) and - wherein the computer system comprises a second non-volatile, writable data memory (2 nd MEM) and - wherein the computer system has a programming unit (PRG) which implements a method for programming the first non-volatile, writable data memory (1 st MEM) and - wherein the programming unit (PRG) carries out the method for programming the first non-volatile, writable data memory (1 st MEM) also for programming the second non-volatile, writable data memory (2 ndMEM) and - wherein the programming unit (PRG) is used for selectively programming the first data memory (1 st MEM) and for optional programming of the second data memory (2 nd MEM) is established and provided and - wherein the first non-volatile data memory (1 st MEM) contain instruction codes of a program for controlling the engine (M), which are read and executed by the computer (RE) during the execution of the program for controlling the engine (M), and - wherein the first non-volatile data memory (1 st MEM) can contain the first program data that the computer (RE) can read and process and - whereby the second non-volatile program memory (2 nd MEM) second program data can be located, which the computer (RE) can read and process, comprising the steps: - initiating the programming of a datum in the first non-volatile data memory (1st MEM) or in the second non-volatile data memory (2nd MEM) by the programming device (PRG) by means of a programming signal (PC) by the computer (RE); storing a datum as a non-volatile second program datum in the second non-volatile data memory (2 nd MEM), by the programming unit (PRG); - Signalling to the computer (RE) which data memory (1st MEN, 2nd MEM) the programming device (PRG) is currently accessing by means of a memory access signal (MAS) of the programming device (PRG); - Waiting of the computer (RE) until the programming device (PRG) releases a data memory again, if the computer (RE) accesses the data memory of the data memory (1 st MEN, 2 nd MEM) which is currently being programmed with a date by the programming device (PRG); - Signalling of this release by the programming device (PRG) to the computer (RE) via the memory access signal (MAS); - Reading and executing one or more instruction codes from the first non-volatile data memory (1 st MEM) and / or reading and processing one or more first program data from the first non-volatile data memory (1 st MEM), by the computer (RE), while saving the date in the second non-volatile data memory (2 nd MEM), by the programming unit (PRG), - wherein during the execution of the program for controlling the motor (M), which program is generated at least in part from the data stored in the first non-volatile data memory (1 st MEM), the computer (RE) does not write data to the first non-volatile data memory (1 st MEM), by the programming unit (PRG), and - wherein the program for controlling the motor (M) comprises instruction codes located in the first non-volatile data memory (1 st MEM) and - wherein the program for controlling the motor (M) may optionally comprise first program data located in the first non-volatile data memory (1 st MEM). [2] Computer system for controlling an engine (M) for use in vehicles, - wherein the computer system comprises a computer (RE) and - whereby the computer (RE) controls a driver for controlling the motor (M) and - wherein the computer system comprises a first non-volatile, writable data memory (1 st MEM) and - wherein the computer system comprises a second non-volatile, writable data memory (2 nd MEM) and - wherein the computer system has a programming unit (PRG) which implements a method for programming the first non-volatile, writable data memory (1 st MEM) and - wherein the programming unit (PRG) carries out the method for programming the first non-volatile, writable data memory (1 st MEM) also for programming the second non-volatile, writable data memory (2 nd MEM) and - wherein the programming unit (PRG) is used for selectively programming the first data memory (1 st MEM) and for optional programming of the second data memory (2 nd MEM) is established and provided and - wherein the first non-volatile data memory (1 stMEM) contain instruction codes of a program for controlling the engine (M), which are read and executed by the computer (RE) during the execution of the engine control program of the engine (M) and - wherein the first non-volatile data memory (1 st MEM) first program data of the program for controlling the motor (M) can be located, which the computer (RE) can read and process and - wherein the second non-volatile data memory (2 nd MEM) second program data of the program for controlling the motor (M) can be located, which the computer (RE) can read and process and - wherein the computer (RE) uses a programming signal (PC) to control the programming device (PRG) for programming a date in the first non-volatile data memory (1 st MEM) or in the second non-volatile data memory (2 nd MEM) and, - wherein the programming unit (PRG) stores a data item as a non-volatile second program item in the second non-volatile data memory (2 nd MEM) and - wherein the programming device (PRG) transfers the data via a programming data bus (PDB) into the respective non-volatile data memory (1 st MEN, 2 nd MEM) and - wherein the programming device (PRG) signals to the computer (RE) via a memory access signal (MAS) which data memory (1 st MEN, 2 nd MEM) the programming device (PRG) is currently accessing and - where the computer (RE), if the computer (RE) accesses a data storage device of the data storage devices (1 st MEN, 2 nd MEM), waits until the programming device (PRG) releases this data memory, which is currently being programmed with a date by the programming device (PRG), and - whereby the programming device (PRG) also signals this release to the computer (RE) via the memory access signal (MAS) and - wherein the computer (RE) retrieves one or more command codes of the program for controlling the motor (M) from the first non-volatile data memory (1 st MEM) reads and / or executes while, in parallel, the programming unit (PRG) stores the said data in the second non-volatile data memory (2 nd MEM) and / or - wherein the computer (RE) optionally retrieves one or more first program data of the program for controlling the motor (M) from the first non-volatile data memory (1 st MEM) and / or process it and - wherein during the execution of the program for controlling the motor (M), which program is generated at least in part from the data stored in the first non-volatile data memory (1 stMEM), the computer (RE) and the programming unit (PRG) do not write data to the first non-volatile data memory (1 st MEM) and - wherein the program for controlling the motor (M) comprises instruction codes located in the first non-volatile data memory (1 st MEM) and - wherein the program for controlling the motor (M) may optionally comprise first program data located in the first non-volatile data memory (1 st MEM).
Citation Information
Patent Citations
Memory access control system
EP0165822A2
Combined program and data nonvolatile memory with concurrent program-read / data write capability
EP0914659A1
Non-volatile memory array that enables simultaneous read and write operations
EP0944906A1
Synchronous flash memory with a function to execute read processing and write processing in parallel
JP3779209B2
Hybrid flash memory structure
US10403342B2
