作者ric2k1 (Ric)
看板EE_DSnP
標題Re: [更正] HW#6
時間Tue May 26 21:20:53 2009
※ 引述《ric2k1 (Ric)》之銘言:
1. [3:50pm, 05/25/09] 新增 CIRRead command 之說明, 如黃色字體所顯示.
3.1 Command "CIRRead"
Usage: CIRRead <(string fileName)> [-Replace]
Description: Read the circuit from the file "fileName" and store it in the
global variable (e.g. cirMgr). If the circuit has been read, issue an error
"Error: circuit already exists!!" unless the option "-Replace" is issued. In
such case, delete the original circuit, create a new one, and print out the
message "Note: original circuit is replaced...".
Note that the original
circuit will be deleted even if the new circuit construction fails. No
warning or error message is needed if "-Replace" is used in the first
construction of the circuit.
Example:
cir> cirread test.cir // read in the circuit description file "test.cir"
cir> cirr -rep kk.cir // read in the circuit description file "kk.cir"
// and replace the original circuit
(Word & PDF file will be updated later)
2. [9:20pm, 05/26/09] Circuit parsing error message update
The following items are added as guarded error message:
Line 2: PI "G3" is redefined!!
Line 2: PI "G6" is defined but not used!!
Line 3: PO "G23" is undefined!!
Line 52: Extra input for INV gate "19GAT_B"!!
Line 57: Missing name for OR gate!!
Modified error message:
Line 49: Missing input for AND gate "19GAT"
!!
Please refer to the updated .doc/.pdf file for details.
3. [9:20pm, 05/26/09] Update on Section 2 "Circuit Description File"
The ".cir", ".input", ".output", gate descriptions, and ".end" sections
are strictly in the above order
, and you do not need check if any of
them is missing.
(.doc and .pdf files have been updated)
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.21.241
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.224.47.190