aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2019-10-04 09:41:45 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2019-10-17 17:11:11 +0200
commitb2f0d75807c99c74f9860098b74e8300514ba9e5 (patch)
tree2c4ceb689626a0451f2cf477af56c6767459ad60
parent1a399c6456b6ca7becf89a5c825b2c8d7b34dc3e (diff)
downloadyosys-b2f0d75807c99c74f9860098b74e8300514ba9e5.tar.gz
yosys-b2f0d75807c99c74f9860098b74e8300514ba9e5.tar.bz2
yosys-b2f0d75807c99c74f9860098b74e8300514ba9e5.zip
remove not needed top module
-rw-r--r--tests/xilinx/fsm.v18
-rw-r--r--tests/xilinx/fsm.ys4
2 files changed, 2 insertions, 20 deletions
diff --git a/tests/xilinx/fsm.v b/tests/xilinx/fsm.v
index 0605bd102..368fbaace 100644
--- a/tests/xilinx/fsm.v
+++ b/tests/xilinx/fsm.v
@@ -52,22 +52,4 @@
endcase
end
- endmodule
-
- module top (
-input clk,
-input rst,
-input a,
-input b,
-output g0,
-output g1
-);
-
-fsm u_fsm ( .clock(clk),
- .reset(rst),
- .req_0(a),
- .req_1(b),
- .gnt_0(g0),
- .gnt_1(g1));
-
endmodule
diff --git a/tests/xilinx/fsm.ys b/tests/xilinx/fsm.ys
index 3b73891c2..a9e94c2c0 100644
--- a/tests/xilinx/fsm.ys
+++ b/tests/xilinx/fsm.ys
@@ -1,10 +1,10 @@
read_verilog fsm.v
-hierarchy -top top
+hierarchy -top fsm
proc
flatten
equiv_opt -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
-cd top # Constrain all select calls below inside the top module
+cd fsm # Constrain all select calls below inside the top module
select -assert-count 1 t:BUFG
select -assert-count 5 t:FDRE