summaryrefslogtreecommitdiffstats
path: root/fpga/xilinx/digilent
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-10-30 14:30:27 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-10-30 14:30:27 -0500
commit5c2d024b38ebfd6e0bd4c559ba45aa516ab275f2 (patch)
tree6bfa12948fe163c76336747a819bf731cedd1982 /fpga/xilinx/digilent
parent8ce60c7f5244a905d466450b762e18620cccfad8 (diff)
downloadulab-5c2d024b38ebfd6e0bd4c559ba45aa516ab275f2.tar.gz
ulab-5c2d024b38ebfd6e0bd4c559ba45aa516ab275f2.zip
Fix progress bar not moving during DSP data reception
Fix syntax error in demo main.v file
Diffstat (limited to 'fpga/xilinx/digilent')
-rw-r--r--fpga/xilinx/digilent/spartan_6/s6_remotefpga_test/main.v10
1 files changed, 6 insertions, 4 deletions
diff --git a/fpga/xilinx/digilent/spartan_6/s6_remotefpga_test/main.v b/fpga/xilinx/digilent/spartan_6/s6_remotefpga_test/main.v
index 85c08be..9f37f9d 100644
--- a/fpga/xilinx/digilent/spartan_6/s6_remotefpga_test/main.v
+++ b/fpga/xilinx/digilent/spartan_6/s6_remotefpga_test/main.v
@@ -284,17 +284,19 @@ endmodule
//-------------------------------------------------------------------------------------------------------
module sample_image_processing_demo(clk, wren, dout, addr, din, enable, done);
+ parameter IMAGE_RAM_ADDR_BITS = 14;
+
input clk;
output reg wren;
output reg [7:0] dout;
- output reg [(RAM_ADDR_BITS-1):0] addr;
+ output reg [(IMAGE_RAM_ADDR_BITS-1):0] addr;
input [7:0] din;
input enable;
output reg done;
reg prev_enable;
- reg [(RAM_ADDR_BITS-1):0] counter;
+ reg [(IMAGE_RAM_ADDR_BITS-1):0] counter;
reg toggler;
always @(posedge clk) begin
@@ -312,7 +314,7 @@ module sample_image_processing_demo(clk, wren, dout, addr, din, enable, done);
wren = 1;
addr = counter;
counter = counter + 1;
- if (counter > (2**RAM_ADDR_BITS)) begin
+ if (counter > (2**IMAGE_RAM_ADDR_BITS)) begin
done = 1;
end
toggler = 0;
@@ -325,4 +327,4 @@ module sample_image_processing_demo(clk, wren, dout, addr, din, enable, done);
end
prev_enable = enable;
end
-endmodule \ No newline at end of file
+endmodule