Skip to content

Commit 760ad67

Browse files
james-ball-qualcommDerek Howerdhower-qc
authored
Fixed the typos found so far (haven't read doc fully yet) (#170)
Co-authored-by: Derek Hower <[email protected]> Co-authored-by: Derek Hower <[email protected]>
1 parent 06716eb commit 760ad67

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

arch/prose/idl.adoc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ There are several aliases of Bits<N> available, as shown below.
144144
|===
145145
| Alias | Type
146146

147-
| `XReg` | `Bits<XLEN>`, where XLEN is configuratin-dependent
147+
| `XReg` | `Bits<XLEN>`, where XLEN is configuration-dependent
148148
| `U64` | `Bits<64>`
149149
| `U32` | `Bits<32>`
150150
|===
@@ -249,7 +249,7 @@ Arrays are declared by appending the size of the array in brackets after the var
249249
.Array declarations
250250
[source,idl]
251251
----
252-
Bitx<32> array_of_words[10]; # array of ten words
252+
Bits<32> array_of_words[10]; # array of ten words
253253
Boolean array_of_bools[12]; # array of twelve booleans
254254
Bits<32> matrix_of_words[32][32]; # array of arrays of 32 words
255255
----
@@ -264,7 +264,7 @@ array_of_bools[3] # Boolean type; the third word in array_of_bools
264264
matrix_of_words[3][4] # Bits<32> type; the fourth word in the third array of matrix_of_words
265265
----
266266

267-
Arrays cannot be casted to Bits<N> type, so the storage order is irrelant and unspecified.
267+
Arrays cannot be casted to Bits<N> type, so the storage order is irrelevant and unspecified.
268268

269269
==== Tuples
270270

@@ -309,7 +309,7 @@ Literals may contain any number of underscores after the initial digit for clari
309309
4'sb1101 # -3 decimal, signed, 4-bit wide
310310
-4'sb1101 # 3 decimal, signed, 4-bit wide
311311
312-
32'h80000000 # 0x8000000, unsigned, 32-bit wide
312+
32'h80000000 # 0x80000000, unsigned, 32-bit wide
313313
32'h8000_0000 # same as above (underscores ignored)
314314
315315
8'13 # 13 decimal, 8-bit wide (default radix is 10)
@@ -340,7 +340,7 @@ Literals may contain any number of underscores after the initial digit for clari
340340
0x0fff # 4095 decimal, unsigned 12-bit wide (leading zeros have no impact)
341341
0 # 0 decimal, unsigned, 1-bit wide (0 is specially defined to be 1-bit wide)
342342
343-
0x80000000 # 0x8000000, unsigned, 32-bit wide
343+
0x80000000 # 0x80000000, unsigned, 32-bit wide
344344
0x8000_0000 # same as above (underscores ignored)
345345
346346
# negative literals
@@ -360,7 +360,7 @@ Array literals are composed of a list of comma-separated values in brackets, sim
360360
.Array literals
361361
[source,idl]
362362
----
363-
Bitx<32> array_of_words[10] = [0,1,2,3,4,5,6,7,8,9];
363+
Bits<32> array_of_words[10] = [0,1,2,3,4,5,6,7,8,9];
364364
Boolean array_of_bools[12] =
365365
[
366366
true,true,true,true,true,true,
@@ -509,7 +509,7 @@ Variables may be optionally initialized when they are declared using the assignm
509509
[source,idl]
510510
----
511511
Boolean condition; # declare condition, initialized to false
512-
XReg address = 0x8000_0000; # declare address, initialized to 0x800000000
512+
XReg address = 0x8000_0000; # declare address, initialized to 0x80000000
513513
Bits<8> pmpCfg0; # declare pmpCfg0, initialized to 8'd0
514514
Bits<8> pmp_cfg_0; # declare pmp_cfg_0, initialized to 8'd0
515515
Bits<8> ary[2]; # declare ary, initialized to [8'd0, 8'd0]
@@ -550,8 +550,8 @@ Note that many global constants, such are configuration parameters, are implicit
550550
[source,idl]
551551
----
552552
Boolean I_LIKE_CHEESE = true; # declare I_LIKE_CHEESE, initialized to true
553-
XReg Address = 0x8000_0000; # declare Address, initialized to 0x800000000
554-
XReg AddressAlias = Address; # declare AddressAlias, initialized to 0x800000000
553+
XReg Address = 0x8000_0000; # declare Address, initialized to 0x80000000
554+
XReg AddressAlias = Address; # declare AddressAlias, initialized to 0x80000000
555555
556556
# Bits<8> pmpCfg; # constant names must start with a lowercase letter. pmpCfg would be a variable
557557
@@ -592,7 +592,7 @@ Bitfields can be converted to a `Bits<N>` type, where N is the width of the bitf
592592

593593
== Casting
594594

595-
There are two explicit cast operators in IDL: `$isgned` and `$bits`.
595+
There are two explicit cast operators in IDL: `$isigned` and `$bits`.
596596

597597
Unsigned Bits<N> values may be cast to signed values using the `$signed` cast operator.
598598

0 commit comments

Comments
 (0)