Compare commits
No commits in common. "67b3c305c334bf4837dbb8f9fba6f9fbb7683ce1" and "6b988087bd470501f0ad5f9dfc4dbcd6ccfd08e7" have entirely different histories.
67b3c305c3
...
6b988087bd
1
Makefile
1
Makefile
|
@ -15,6 +15,7 @@ prog: pixelflut.bit
|
|||
openFPGALoader -b arty_a7_35t $<
|
||||
|
||||
sim: dvi_tb.vcd
|
||||
gtkwave $<
|
||||
|
||||
pixelflut.bit: pixelflut.frames
|
||||
xc7frames2bit --part_file "$(XRAY_DATABASE_DIR)/artix7/$(PART)/part.yaml" --part_name $(PART) --frm_file $< --output_file $@
|
||||
|
|
12
dvi.v
12
dvi.v
|
@ -100,12 +100,10 @@ module dvi #(
|
|||
|
||||
if (y == V_DATA_START && (~ck && x == H_DATA_START-3 || x >= H_DATA_START-2) && x < H_DATA_START) fetch_en <= 1;
|
||||
|
||||
if (y >= V_DATA_START && y < V_DATA_END) begin
|
||||
if ((~ck && x == H_DATA_START-1 || x >= H_DATA_START) && (x <= H_DATA_END-2 || ck && x == H_DATA_END-1)) begin
|
||||
d <= data[active_data][11:0];
|
||||
if (y >= V_DATA_START && y < V_DATA_END && x >= H_DATA_START && x < H_DATA_END) begin
|
||||
d <= data[active_data][11:0];
|
||||
|
||||
fetch_en <= 1;
|
||||
end
|
||||
fetch_en <= 1;
|
||||
end
|
||||
|
||||
if (x == H_BLANK_START-1) begin
|
||||
|
@ -119,8 +117,8 @@ module dvi #(
|
|||
end
|
||||
|
||||
always @(negedge bus_clk) begin
|
||||
if (output_state == OUTPUT_IDLE || ck == 1) ck <= 0;
|
||||
else ck <= 1;
|
||||
if (output_state == OUTPUT_IDLE) ck <= 0;
|
||||
else ck <= ~ck;
|
||||
|
||||
if (y == 11'b0) begin
|
||||
bus_addr <= BASE_ADDR;
|
||||
|
|
Loading…
Reference in New Issue