vgafb: bugfixes, change synthesis optimization settings
This commit is contained in:
parent
937369f60b
commit
042a18fc9b
2 changed files with 28 additions and 12 deletions
|
|
@ -159,7 +159,7 @@ module vgafb #(VMEM_ADDR_WIDTH = 15, VMEM_DATA_WIDTH = 32) (
|
||||||
`ifdef ENABLE_FB_ACCEL
|
`ifdef ENABLE_FB_ACCEL
|
||||||
reg [VMEM_DATA_WIDTH-1:0] acc_shifter_in;
|
reg [VMEM_DATA_WIDTH-1:0] acc_shifter_in;
|
||||||
reg [(VMEM_DATA_WIDTH*2)-1:0] acc_shifter_out;
|
reg [(VMEM_DATA_WIDTH*2)-1:0] acc_shifter_out;
|
||||||
reg [2:0] acc_shift_count;
|
reg [4:0] acc_shift_count;
|
||||||
reg acc_start_shift;
|
reg acc_start_shift;
|
||||||
reg [VMEM_DATA_WIDTH-1:0] acc_mask_in;
|
reg [VMEM_DATA_WIDTH-1:0] acc_mask_in;
|
||||||
wire [VMEM_DATA_WIDTH-1:0] acc_mask_out;
|
wire [VMEM_DATA_WIDTH-1:0] acc_mask_out;
|
||||||
|
|
@ -307,14 +307,14 @@ module vgafb #(VMEM_ADDR_WIDTH = 15, VMEM_DATA_WIDTH = 32) (
|
||||||
always @(posedge cpu_clk)
|
always @(posedge cpu_clk)
|
||||||
begin
|
begin
|
||||||
if(wr_en && reg_sel == REG_SHIFTER)
|
if(wr_en && reg_sel == REG_SHIFTER)
|
||||||
acc_shifter_in <= { wr_data, {32{1'b0}}};
|
acc_shifter_in <= wr_data;
|
||||||
end
|
end
|
||||||
|
|
||||||
always @(posedge cpu_clk)
|
always @(posedge cpu_clk)
|
||||||
begin
|
begin
|
||||||
if(wr_en && reg_sel == REG_SHIFTCOUNT)
|
if(wr_en && reg_sel == REG_SHIFTCOUNT)
|
||||||
begin
|
begin
|
||||||
acc_shift_count <= wr_data[2:0];
|
acc_shift_count <= { wr_data[2:0], 2'b0};
|
||||||
acc_start_shift <= 1;
|
acc_start_shift <= 1;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -356,10 +356,16 @@
|
||||||
</Simulator>
|
</Simulator>
|
||||||
</Simulators>
|
</Simulators>
|
||||||
<Runs Version="1" Minor="22">
|
<Runs Version="1" Minor="22">
|
||||||
<Run Id="synth_1" Type="Ft3:Synth" SrcSet="sources_1" Part="xc7a35ticsg324-1L" ConstrsSet="constrs_1" Description="Vivado Synthesis Defaults" AutoIncrementalCheckpoint="false" WriteIncrSynthDcp="false" State="current" Dir="$PRUNDIR/synth_1" IncludeInArchive="true" IsChild="false" AutoIncrementalDir="$PSRCDIR/utils_1/imports/synth_1" AutoRQSDir="$PSRCDIR/utils_1/imports/synth_1" ParallelReportGen="true">
|
<Run Id="synth_1" Type="Ft3:Synth" SrcSet="sources_1" Part="xc7a35ticsg324-1L" ConstrsSet="constrs_1" Description="Performs optimizations which creates alternative logic technology mapping, including disabling LUT combining, forcing F7/F8/F9 to logic, increasing the threshold of shift register inference." AutoIncrementalCheckpoint="false" WriteIncrSynthDcp="false" State="current" Dir="$PRUNDIR/synth_1" IncludeInArchive="true" IsChild="false" AutoIncrementalDir="$PSRCDIR/utils_1/imports/synth_1" AutoRQSDir="$PSRCDIR/utils_1/imports/synth_1" ParallelReportGen="true">
|
||||||
<Strategy Version="1" Minor="2">
|
<Strategy Version="1" Minor="2">
|
||||||
<StratHandle Name="Vivado Synthesis Defaults" Flow="Vivado Synthesis 2024"/>
|
<StratHandle Name="Flow_AlternateRoutability" Flow="Vivado Synthesis 2024">
|
||||||
<Step Id="synth_design"/>
|
<Desc>Performs optimizations which creates alternative logic technology mapping, including disabling LUT combining, forcing F7/F8/F9 to logic, increasing the threshold of shift register inference.</Desc>
|
||||||
|
</StratHandle>
|
||||||
|
<Step Id="synth_design">
|
||||||
|
<Option Id="Directive">3</Option>
|
||||||
|
<Option Id="NoCombineLuts">1</Option>
|
||||||
|
<Option Id="ShregMinSize">10</Option>
|
||||||
|
</Step>
|
||||||
</Strategy>
|
</Strategy>
|
||||||
<GeneratedRun Dir="$PRUNDIR" File="gen_run.xml"/>
|
<GeneratedRun Dir="$PRUNDIR" File="gen_run.xml"/>
|
||||||
<ReportStrategy Name="Vivado Synthesis Default Reports" Flow="Vivado Synthesis 2024"/>
|
<ReportStrategy Name="Vivado Synthesis Default Reports" Flow="Vivado Synthesis 2024"/>
|
||||||
|
|
@ -376,16 +382,26 @@
|
||||||
<Report Name="ROUTE_DESIGN.REPORT_METHODOLOGY" Enabled="1"/>
|
<Report Name="ROUTE_DESIGN.REPORT_METHODOLOGY" Enabled="1"/>
|
||||||
<RQSFiles/>
|
<RQSFiles/>
|
||||||
</Run>
|
</Run>
|
||||||
<Run Id="impl_1" Type="Ft2:EntireDesign" Part="xc7a35ticsg324-1L" ConstrsSet="constrs_1" Description="Default settings for Implementation." AutoIncrementalCheckpoint="false" WriteIncrSynthDcp="false" State="current" Dir="$PRUNDIR/impl_1" SynthRun="synth_1" IncludeInArchive="true" IsChild="false" GenFullBitstream="true" AutoIncrementalDir="$PSRCDIR/utils_1/imports/impl_1" LaunchOptions="-jobs 6 " AutoRQSDir="$PSRCDIR/utils_1/imports/impl_1" ParallelReportGen="true">
|
<Run Id="impl_1" Type="Ft2:EntireDesign" Part="xc7a35ticsg324-1L" ConstrsSet="constrs_1" Description="Best predicted directive for place_design." AutoIncrementalCheckpoint="false" WriteIncrSynthDcp="false" State="current" Dir="$PRUNDIR/impl_1" SynthRun="synth_1" IncludeInArchive="true" IsChild="false" GenFullBitstream="true" AutoIncrementalDir="$PSRCDIR/utils_1/imports/impl_1" LaunchOptions="-jobs 6 " AutoRQSDir="$PSRCDIR/utils_1/imports/impl_1" ParallelReportGen="true">
|
||||||
<Strategy Version="1" Minor="2">
|
<Strategy Version="1" Minor="2">
|
||||||
<StratHandle Name="Vivado Implementation Defaults" Flow="Vivado Implementation 2024"/>
|
<StratHandle Name="Performance_Auto_1" Flow="Vivado Implementation 2024">
|
||||||
|
<Desc>Best predicted directive for place_design.</Desc>
|
||||||
|
</StratHandle>
|
||||||
<Step Id="init_design"/>
|
<Step Id="init_design"/>
|
||||||
<Step Id="opt_design"/>
|
<Step Id="opt_design">
|
||||||
|
<Option Id="Directive">0</Option>
|
||||||
|
</Step>
|
||||||
<Step Id="power_opt_design"/>
|
<Step Id="power_opt_design"/>
|
||||||
<Step Id="place_design"/>
|
<Step Id="place_design">
|
||||||
|
<Option Id="Directive">20</Option>
|
||||||
|
</Step>
|
||||||
<Step Id="post_place_power_opt_design"/>
|
<Step Id="post_place_power_opt_design"/>
|
||||||
<Step Id="phys_opt_design"/>
|
<Step Id="phys_opt_design">
|
||||||
<Step Id="route_design"/>
|
<Option Id="Directive">2</Option>
|
||||||
|
</Step>
|
||||||
|
<Step Id="route_design">
|
||||||
|
<Option Id="Directive">1</Option>
|
||||||
|
</Step>
|
||||||
<Step Id="post_route_phys_opt_design"/>
|
<Step Id="post_route_phys_opt_design"/>
|
||||||
<Step Id="write_bitstream"/>
|
<Step Id="write_bitstream"/>
|
||||||
</Strategy>
|
</Strategy>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue