mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-04-30 21:48:24 +00:00
Add initial logic for handling dedicated interconnect situations.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
8
fpga_interchange/examples/ff/Makefile
Normal file
8
fpga_interchange/examples/ff/Makefile
Normal file
@@ -0,0 +1,8 @@
|
||||
DESIGN := ff
|
||||
DESIGN_TOP := top
|
||||
PACKAGE := csg324
|
||||
|
||||
include ../template.mk
|
||||
|
||||
build/ff.json: ff.v | build
|
||||
yosys -c run.tcl
|
||||
11
fpga_interchange/examples/ff/ff.v
Normal file
11
fpga_interchange/examples/ff/ff.v
Normal file
@@ -0,0 +1,11 @@
|
||||
module top(input clk, input d, input r, output reg q);
|
||||
|
||||
always @(posedge clk)
|
||||
begin
|
||||
if(r)
|
||||
q <= 1'b0;
|
||||
else
|
||||
q <= d;
|
||||
end
|
||||
|
||||
endmodule
|
||||
9
fpga_interchange/examples/ff/ff.xdc
Normal file
9
fpga_interchange/examples/ff/ff.xdc
Normal file
@@ -0,0 +1,9 @@
|
||||
set_property PACKAGE_PIN P17 [get_ports clk]
|
||||
set_property PACKAGE_PIN N15 [get_ports d]
|
||||
set_property PACKAGE_PIN N16 [get_ports r]
|
||||
set_property PACKAGE_PIN M17 [get_ports q]
|
||||
|
||||
set_property IOSTANDARD LVCMOS33 [get_ports clk]
|
||||
set_property IOSTANDARD LVCMOS33 [get_ports d]
|
||||
set_property IOSTANDARD LVCMOS33 [get_ports r]
|
||||
set_property IOSTANDARD LVCMOS33 [get_ports q]
|
||||
14
fpga_interchange/examples/ff/run.tcl
Normal file
14
fpga_interchange/examples/ff/run.tcl
Normal file
@@ -0,0 +1,14 @@
|
||||
yosys -import
|
||||
|
||||
read_verilog ff.v
|
||||
|
||||
synth_xilinx -nolutram -nowidelut -nosrl -nocarry -nodsp
|
||||
|
||||
# opt_expr -undriven makes sure all nets are driven, if only by the $undef
|
||||
# net.
|
||||
opt_expr -undriven
|
||||
opt_clean
|
||||
|
||||
setundef -zero -params
|
||||
|
||||
write_json build/ff.json
|
||||
Reference in New Issue
Block a user