Skip to content

Commit a2058b4

Browse files
authored
Merge pull request #97 from MrJake222/comments
Fixed comment typos
2 parents 21eef94 + cb3ff18 commit a2058b4

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

rtl/darkriscv.v

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ module darkriscv
145145
//XFCC <= HLT ? XFCC : IDATAX[6:0]==`FCC;
146146
XSYS <= HLT ? XSYS : IDATAX[6:0]==`SYS;
147147

148-
// signal extended immediate, according to the instruction type:
148+
// sign extended immediate, according to the instruction type:
149149

150150
XSIMM <= HLT ? XSIMM :
151151
IDATAX[6:0]==`SCC ? { IDATAX[31] ? ALL1[31:12]:ALL0[31:12], IDATAX[31:25],IDATAX[11:7] } : // s-type
@@ -154,7 +154,8 @@ module darkriscv
154154
IDATAX[6:0]==`LUI||
155155
IDATAX[6:0]==`AUIPC ? { IDATAX[31:12], ALL0[11:0] } : // u-type
156156
{ IDATAX[31] ? ALL1[31:12]:ALL0[31:12], IDATAX[31:20] }; // i-type
157-
// non-signal extended immediate, according to the instruction type:
157+
158+
// zero-extended (unsigned) immediate, according to the instruction type:
158159

159160
XUIMM <= HLT ? XUIMM :
160161
IDATAX[6:0]==`SCC ? { ALL0[31:12], IDATAX[31:25],IDATAX[11:7] } : // s-type
@@ -193,7 +194,7 @@ module darkriscv
193194
//assign XFCC <= IDATAX[6:0]==`FCC;
194195
assign XSYS = IDATAX[6:0]==`SYS;
195196

196-
// signal extended immediate, according to the instruction type:
197+
// sign extended immediate, according to the instruction type:
197198

198199
assign XSIMM =
199200
IDATAX[6:0]==`SCC ? { IDATAX[31] ? ALL1[31:12]:ALL0[31:12], IDATAX[31:25],IDATAX[11:7] } : // s-type
@@ -202,7 +203,8 @@ module darkriscv
202203
IDATAX[6:0]==`LUI||
203204
IDATAX[6:0]==`AUIPC ? { IDATAX[31:12], ALL0[11:0] } : // u-type
204205
{ IDATAX[31] ? ALL1[31:12]:ALL0[31:12], IDATAX[31:20] }; // i-type
205-
// non-signal extended immediate, according to the instruction type:
206+
207+
// zero-extended (unsigned) immediate, according to the instruction type:
206208

207209
assign XUIMM =
208210
IDATAX[6:0]==`SCC ? { ALL0[31:12], IDATAX[31:25],IDATAX[11:7] } : // s-type
@@ -288,7 +290,7 @@ module darkriscv
288290
initial for(i=0;i!=`RLEN;i=i+1) REGS[i] = 0;
289291
`endif
290292

291-
// source-1 and source-1 register selection
293+
// source-1 and source-2 register selection
292294

293295
wire [31:0] U1REG = REGS[S1PTR];
294296
wire [31:0] U2REG = REGS[S2PTR];

0 commit comments

Comments
 (0)