Skip to content

Commit d048947

Browse files
authored
ЛР№2. Добавление расшифровок аббревиатур опкодов
1 parent 0455c3a commit d048947

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Labs/02. Arithmetic-logic unit/alu_opcodes_pkg.sv

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@ localparam ALU_OR = 5'b00110;
1919
localparam ALU_AND = 5'b00111;
2020

2121
// shifts
22-
localparam ALU_SRA = 5'b01101;
23-
localparam ALU_SRL = 5'b00101;
24-
localparam ALU_SLL = 5'b00001;
22+
localparam ALU_SRA = 5'b01101; // Shift_Right_Ariphmetic
23+
localparam ALU_SRL = 5'b00101; // Shift Right Logic
24+
localparam ALU_SLL = 5'b00001; // Shift Left Logic
2525

2626
// comparisons
27-
localparam ALU_LTS = 5'b11100;
28-
localparam ALU_LTU = 5'b11110;
29-
localparam ALU_GES = 5'b11101;
30-
localparam ALU_GEU = 5'b11111;
31-
localparam ALU_EQ = 5'b11000;
32-
localparam ALU_NE = 5'b11001;
27+
localparam ALU_LTS = 5'b11100; // Less Than Signed
28+
localparam ALU_LTU = 5'b11110; // Less Than Unsigned
29+
localparam ALU_GES = 5'b11101; // Great [or] Equal signed
30+
localparam ALU_GEU = 5'b11111; // Great [or] Equal unsigned
31+
localparam ALU_EQ = 5'b11000; // Equal
32+
localparam ALU_NE = 5'b11001; // Not Equal
3333

3434
// set lower than operations
35-
localparam ALU_SLTS = 5'b00010;
36-
localparam ALU_SLTU = 5'b00011;
35+
localparam ALU_SLTS = 5'b00010; // Set Less Than Signed
36+
localparam ALU_SLTU = 5'b00011; // Set Less Than Unsigned
3737

38-
endpackage
38+
endpackage

0 commit comments

Comments
 (0)