Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
* Literal 的翻译: 文字 -> 字面量
* 6.5 / 8.2 节下的 typos
* 为 bsvbuild.sh 中的 `echo` 命令创建别名
  有的 Linux 发行版会因为没有这个别名,导致 bvsbuild.sh 不会正常输出
  • Loading branch information
yilozt committed Mar 27, 2023
1 parent 0df1a11 commit 48a5231
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -826,8 +826,8 @@ BSV 中的类型必须派生 (deriving) 自零个、一个或多个**类型类**
| `Eq` | 派生出的类型的变量之间可以判断是否相等。 |
| `Ord` | 派生出的类型的变量之间可以比较大小。 |
| `Arith` | 派生出的类型的变量之间可以进行算术运算(加减乘除)。 |
| `Literal` | 派生出的类型的变量可以创建自从整数文字(例如123, 4567 这样)。 |
| `RealLiteral` | 派生出的类型的变量可以创建自从实数文字(例如12.3, 45.67 这样)。 |
| `Literal` | 派生出的类型的变量可以创建自从整数字面量(例如123, 4567 这样)。 |
| `RealLiteral` | 派生出的类型的变量可以创建自从实数字面量(例如12.3, 45.67 这样)。 |
| `Bounded` | 派生出的类型的变量具有有限范围。 |
| `Bitwise` | 派生出的类型的变量之间可以进行按位运算(与、或、非等)。 |
| `BitReduction` | 派生出的类型的变量可以进行逐位合并运算来产生1位的结果(类比Verilog中的 \|a 写法)。 |
Expand Down Expand Up @@ -2545,7 +2545,7 @@ cnt=6 x=4 y=5
分析如下:
- 规则 `x2y``y2x` 有排序冲突。
- 在前2个周期,`x<=y+1;` 被执行,这是因为规则 `y2x` 隐式条件 `w1._read` 被满足,且 `y2x` 紧急程度高于 `x2y` ,所以激活 `y2x` 而不是 `x2y`
- 在前2个周期,`x<=y+w1;` 被执行,这是因为规则 `y2x` 隐式条件 `w1._read` 被满足,且 `y2x` 紧急程度高于 `x2y` ,所以激活 `y2x` 而不是 `x2y`
- 在 cnt>=2 的周期,`y<=x+1;` 被执行,这是因为隐式条件 `w1._read` 不再满足,无法激活 `y2x` ,转而激活与之冲突的 `x2y`
### <span id="head68">不能用 if 语句影响冲突的判断</span>
Expand Down Expand Up @@ -4183,7 +4183,7 @@ BRAM2Port#(UInt#(12), int) ram2 <- mkBRAM2Server(
loadFormat : tagged Hex "data.txt", // 使用包含十六进制数的文本文件 data.txt 设置初始值
latency : 2, // 读数据和写响应的延迟=2
outFIFODepth : 4, // 读数据和写响应的缓存大小=4
allowWriteResponseBypass : False } // 不允许写响应绕过之前的读数据
allowWriteResponseBypass : False // 不允许写响应绕过之前的读数据
}
);
```
Expand Down
1 change: 1 addition & 0 deletions bsvbuild.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# sh bsvbuild.sh
#

alias echo="echo -e"

# colors for print text ------------------------------------------------------------------------------------------------------------------
error_color="\033[1;31m" # echo this to change print text color for Error message. (31 is red)
Expand Down

0 comments on commit 48a5231

Please sign in to comment.