Skip to content

Commit 72a9865

Browse files
author
Simon Monk
committed
updated papilio files
1 parent c3e73d8 commit 72a9865

File tree

8 files changed

+805
-50
lines changed

8 files changed

+805
-50
lines changed

papilio/ch03_counter/src/counter_papilio.ucf

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Joystick select Push Switch is Clock
44
# LEDs 0 to 3 are outputs
55

6-
NET "Clock" LOC = "P22" | PULLUP | CLOCK_DEDICATED_ROUTE = TRUE;
6+
NET "Clock" LOC = "P22" | PULLUP | CLOCK_DEDICATED_ROUTE = FALSE;
77

88
NET "QA" LOC = "P5";
99
NET "QB" LOC = "P9";

papilio/ch08_tone/src/debouncer.v

-45
This file was deleted.

papilio/ch08_tone/src/papillio.ucf

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
NET "CLK" LOC = P89; #32MHz
44

55
# Output
6-
NET "tone_1khz" LOC = P85;
6+
NET "tone_1khz" LOC = P85;
77
NET "tone_100hz" LOC = P83;
88
NET "tone_12khz" LOC = P78;
99

papilio/ch08_tone/src/tone.v

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ begin
1515
if (prescaler == CLK_F / 2 - 1)
1616
begin
1717
prescaler <= 0;
18-
counter <= counter + 1;
19-
if (counter == period)
18+
counter <= counter + 1;
19+
if (counter == period - 1)
2020
begin
2121
counter <= 0;
2222
tone_out <= ~ tone_out;

papilio/ch08_tone/src/tone_tester.v

-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@ tone #(32) t1(.CLK (CLK), .period (period_1khz), .tone_out (tone_1khz));
1313
tone #(32) t2(.CLK (CLK), .period (period_100hz), .tone_out (tone_100hz));
1414
tone #(32) t3(.CLK (CLK), .period (period_12khz), .tone_out (tone_12khz));
1515

16-
1716
endmodule

papilio/ch08_tone/tone.xise

+1
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@
193193
<property xil_pn:name="Output Extended Identifiers" xil_pn:value="false" xil_pn:valueState="default"/>
194194
<property xil_pn:name="Output File Name" xil_pn:value="tone_tester" xil_pn:valueState="default"/>
195195
<property xil_pn:name="Overwrite Compiled Libraries" xil_pn:value="false" xil_pn:valueState="default"/>
196+
<property xil_pn:name="Overwrite Existing Symbol" xil_pn:value="false" xil_pn:valueState="default"/>
196197
<property xil_pn:name="Pack I/O Registers into IOBs" xil_pn:value="Auto" xil_pn:valueState="default"/>
197198
<property xil_pn:name="Pack I/O Registers/Latches into IOBs" xil_pn:value="Off" xil_pn:valueState="default"/>
198199
<property xil_pn:name="Package" xil_pn:value="vq100" xil_pn:valueState="default"/>

papilio/ch08_tone/tone_tester.bit

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)