Fix issues quartus synthesis issues
This commit is contained in:
@@ -28,8 +28,8 @@ module VX_alu(
|
|||||||
.PIPELINE(div_pipeline_len)
|
.PIPELINE(div_pipeline_len)
|
||||||
) unsigned_div (
|
) unsigned_div (
|
||||||
.clock(clk),
|
.clock(clk),
|
||||||
.aclr(0),
|
.aclr(1'b0),
|
||||||
.clken(1), // TODO this could be disabled on inactive instructions
|
.clken(1'b1), // TODO this could be disabled on inactive instructions
|
||||||
.numer(ALU_in1),
|
.numer(ALU_in1),
|
||||||
.denom(ALU_in2),
|
.denom(ALU_in2),
|
||||||
.quotient(unsigned_div_result),
|
.quotient(unsigned_div_result),
|
||||||
@@ -45,8 +45,8 @@ module VX_alu(
|
|||||||
.PIPELINE(div_pipeline_len)
|
.PIPELINE(div_pipeline_len)
|
||||||
) signed_div (
|
) signed_div (
|
||||||
.clock(clk),
|
.clock(clk),
|
||||||
.aclr(0),
|
.aclr(1'b0),
|
||||||
.clken(1), // TODO this could be disabled on inactive instructions
|
.clken(1'b1), // TODO this could be disabled on inactive instructions
|
||||||
.numer(ALU_in1),
|
.numer(ALU_in1),
|
||||||
.denom(ALU_in2),
|
.denom(ALU_in2),
|
||||||
.quotient(signed_div_result),
|
.quotient(signed_div_result),
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ module VX_csr_data (
|
|||||||
always @(posedge clk or posedge reset) begin
|
always @(posedge clk or posedge reset) begin
|
||||||
if (reset) begin
|
if (reset) begin
|
||||||
for (curr_e = 0; curr_e < 1024; curr_e=curr_e+1) begin
|
for (curr_e = 0; curr_e < 1024; curr_e=curr_e+1) begin
|
||||||
assign csr[curr_e] = 0;
|
csr[curr_e] <= 0;
|
||||||
end
|
end
|
||||||
cycle <= 0;
|
cycle <= 0;
|
||||||
instret <= 0;
|
instret <= 0;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
`include "VX_define.v"
|
||||||
|
|
||||||
module VX_csr_pipe (
|
module VX_csr_pipe (
|
||||||
input wire clk, // Clock
|
input wire clk, // Clock
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ module VX_divide
|
|||||||
.numer(numer),
|
.numer(numer),
|
||||||
.denom(denom),
|
.denom(denom),
|
||||||
.quotient(quotient),
|
.quotient(quotient),
|
||||||
.remainder(remainder)
|
.remain(remainder)
|
||||||
);
|
);
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -70,6 +70,7 @@ set_global_assignment -name VERILOG_FILE ../shared_memory/VX_shared_memory_block
|
|||||||
set_global_assignment -name VERILOG_FILE ../shared_memory/VX_shared_memory.v
|
set_global_assignment -name VERILOG_FILE ../shared_memory/VX_shared_memory.v
|
||||||
set_global_assignment -name VERILOG_FILE ../shared_memory/VX_priority_encoder_sm.v
|
set_global_assignment -name VERILOG_FILE ../shared_memory/VX_priority_encoder_sm.v
|
||||||
set_global_assignment -name VERILOG_FILE ../shared_memory/VX_bank_valids.v
|
set_global_assignment -name VERILOG_FILE ../shared_memory/VX_bank_valids.v
|
||||||
|
set_global_assignment -name VERILOG_FILE ../compat/VX_divide.v
|
||||||
set_global_assignment -name VERILOG_FILE ../VX_alu.v
|
set_global_assignment -name VERILOG_FILE ../VX_alu.v
|
||||||
set_global_assignment -name VERILOG_FILE ../VX_back_end.v
|
set_global_assignment -name VERILOG_FILE ../VX_back_end.v
|
||||||
set_global_assignment -name VERILOG_FILE ../VX_context.v
|
set_global_assignment -name VERILOG_FILE ../VX_context.v
|
||||||
|
|||||||
@@ -4,3 +4,6 @@ create_clock -name {clk} -period "400 MHz" -waveform { 0.0 1.0 } [get_ports {clk
|
|||||||
|
|
||||||
derive_pll_clocks -create_base_clocks
|
derive_pll_clocks -create_base_clocks
|
||||||
derive_clock_uncertainty
|
derive_clock_uncertainty
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user