Skip to content

Commit 9593eb5

Browse files
author
djns1
committed
Updated the test cases
1 parent 80aae52 commit 9593eb5

File tree

9 files changed

+29
-22
lines changed

9 files changed

+29
-22
lines changed

ODIN_II/SRC/ast_elaborate.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2426,8 +2426,6 @@ void verify_genvars(ast_node_t* node, sc_hierarchy* local_ref, char*** other_gen
24262426
}
24272427

24282428
ast_node_t* look_for_matching_hard_block(ast_node_t* node, char* hard_block_name, sc_hierarchy* local_ref) {
2429-
// TODO Update this to match inouts as valid inputs or outputs to the hardblock
2430-
24312429
t_model* hb_model = find_hard_block(hard_block_name);
24322430
bool is_hb = true;
24332431

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
module inout_assign(inout a);
2-
reg r;
3-
always @(*)
4-
begin
5-
r = a;
6-
end
1+
module inout_assign(inout a, output b);
2+
assign b = a;
73
endmodule
84

9-
module inout_basic(b);
10-
input b;
11-
inout_assign c(b);
5+
module inout_basic(input a, output b);
6+
inout_assign c(a, b);
127
endmodule
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
GLOBAL_SIM_BASE_CLK a
22
0 0
3+
0 1
4+
0 1
5+
0 0
36
0 1
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
b
2+
0
3+
1
4+
1
5+
0
6+
1

ODIN_II/regression_test/benchmark/verilog/syntax/inout-syntax/inout_ouput_only_input

Lines changed: 0 additions & 3 deletions
This file was deleted.

ODIN_II/regression_test/benchmark/verilog/syntax/inout-syntax/inout_ouput_only_output

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
module inout_assign(inout a);
2-
assign a = 1;
1+
module inout_assign(input a, inout b);
2+
assign b = a;
33
endmodule
44

5-
module inout_basic(b);
6-
output b;
7-
inout_assign c(b);
5+
module inout_basic(input a, output b);
6+
inout_assign c(a, b);
87
endmodule
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
GLOBAL_SIM_BASE_CLK a
2+
0 0
3+
0 1
4+
0 1
5+
0 0
6+
0 1
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
b
2+
0
3+
1
4+
1
5+
0
6+
1

0 commit comments

Comments
 (0)