mirror of https://github.com/YosysHQ/yosys.git
remove not needed top module
This commit is contained in:
parent
1a399c6456
commit
b2f0d75807
|
@ -53,21 +53,3 @@
|
||||||
end
|
end
|
||||||
|
|
||||||
endmodule
|
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
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
read_verilog fsm.v
|
read_verilog fsm.v
|
||||||
hierarchy -top top
|
hierarchy -top fsm
|
||||||
proc
|
proc
|
||||||
flatten
|
flatten
|
||||||
equiv_opt -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
|
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)
|
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 1 t:BUFG
|
||||||
select -assert-count 5 t:FDRE
|
select -assert-count 5 t:FDRE
|
||||||
|
|
Loading…
Reference in New Issue