Improved xilinx mojo_counter example
authorClifford Wolf <clifford@clifford.at>
Sat, 26 Oct 2013 20:28:42 +0000 (22:28 +0200)
committerClifford Wolf <clifford@clifford.at>
Sat, 26 Oct 2013 20:28:42 +0000 (22:28 +0200)
techlibs/xilinx7/example_mojo_counter/example.sh
techlibs/xilinx7/example_mojo_counter/example.v

index 17fc650e47f7e426728a55959f4c5a620a2e7772..87af0ea31eeb6a47f88b7490da3107c4b9bfff51 100644 (file)
@@ -19,11 +19,14 @@ abc -lut 6; opt
 # map internal cells to FPGA cells
 techmap -map ../cells.v; opt
 
+# insert i/o buffers
+iopadmap -outpad OBUF I:O -inpad BUFGP O:I
+
 # write netlist
 write_edif synth.edif
 EOT
 
-cat > synth.ut <<- EOT
+cat > bitgen.ut <<- EOT
        -w
        -g DebugBitstream:No
        -g Binary:no
index 1327d9b860fbb80b74c1cb2773a3d9f07e531ddc..8e79942e22a45ebeb1c7a916e9fbb6f952b3f7fc 100644 (file)
@@ -7,7 +7,7 @@ output led_3, led_2, led_1, led_0;
 reg [31:0] counter;
 
 always @(posedge clk)
-       counter <= counter + 1;
+       counter <= 32'b_1010_1010_1010_1010_1010_1010_1010_1010; // counter + 1;
 
 assign {led_7, led_6, led_5, led_4, led_3, led_2, led_1, led_0} = counter >> 24;