Skip to content

Commit cc1324e

Browse files
committed
tests for ast_code_generator are updated.
1 parent aebc9a7 commit cc1324e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/ast_code_generator_test/test_ast_always.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
(
1414
input CLK,
1515
input RST,
16-
output [7:0] led
16+
output [7 : 0] led
1717
);
1818
19-
reg [DATAWID - 1:0] count;
20-
assign led = count[DATAWID - 1:DATAWID - 8];
19+
reg [DATAWID - 1 : 0] count;
20+
assign led = count[DATAWID - 1 : DATAWID - 8];
2121
2222
always @(posedge CLK) begin
2323
if(RST) begin

tests/ast_code_generator_test/test_ast_assign.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
(
1111
input CLK,
1212
input RST,
13-
output [7:0] led
13+
output [7 : 0] led
1414
);
1515
1616
assign led = 8;

0 commit comments

Comments
 (0)