作者stimim (qqaa)
看板EE_DSnP
标题[问题] Simulation Pattern File
时间Sun Jan 16 12:33:32 2011
请问一下,Spec 上说:
Each line represents an input pattern, where its string length should
match the number of circuit inputs. The patterns, of course, should
contain only '0' and '1' and no space character is allowed between
the input assignments in a pattern.
感觉起来好像:
1. 不能有空白行 (Each line represents an input pattern)
2. 每一行的长度一定等於 PI 的数量 (string length matchs
the number of circuit inputs)
3. 每一行一定只有 '0' 或 '1' (因为 2.)
可是,ref prog好像是用类似 "cin >> string_var" 的方式,乎略了换行和空白
Ex1: // #PI = 1
--------
1 1
--------
ref prog: No error
my prog: Pattern(1 1) length(3) does not match
Ex2:
--------
1
--------
ref prog: No error
my prog: Pattern() length(0) does not match
Ex3
--------
1
--------
ref prog: No error
my prog: Pattern( 1) length(2) does not match
可以请问一下 Pattern File 的详细格式吗?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 61.228.152.196
1F:推 scuendless:之前好像有说可以忽略pattern前後的空白(pattern间不可 01/16 12:37