Skip to content

Commit

Permalink
Update core/zcmt_decoder.sv
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
farhan-108 and github-actions[bot] authored Nov 22, 2024
1 parent a5f3ace commit 79936ee
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions core/zcmt_decoder.sv
Original file line number Diff line number Diff line change
Expand Up @@ -105,32 +105,32 @@ module zcmt_decoder #(
state_d = TABLE_FETCH;
case (zcmt_instr_type)
JT: begin
if(CVA6Cfg.XLEN == 32) begin
jvt_table_add = {jvt_base_i[31:6],6'b000000};
table_address = jvt_table_add + (index <<2);
table_a = {2'b00,table_address[CVA6Cfg.XLEN-1:0]};
req_port_o.address_index = table_a[9:0];
req_port_o.address_tag = table_a[33:10];
req_port_o.data_wdata = 1'b0;
req_port_o.data_wuser = '0;
req_port_o.data_req = 1'b1;
req_port_o.data_we = 1'b0;
req_port_o.data_be = 1'b0;
req_port_o.data_size = 2'b10;
req_port_o.data_id = 1;
req_port_o.kill_req = 0;
req_port_o.tag_valid = 1;
end else if(CVA6Cfg.XLEN == 64) begin
jvt_table_add = {jvt_base_i[31:6],6'b000000};
table_address = jvt_table_add + (index <<3);
table_a = {2'b00,table_address[CVA6Cfg.XLEN-1:0]};
// will will completed in future( for 64 bit embedded core)
illegal_instr_o = 1'b1;
end else begin
illegal_instr_o = 1'b1;
instr_o_reg = instr_i;
end
if (CVA6Cfg.XLEN == 32) begin
jvt_table_add = {jvt_base_i[31:6], 6'b000000};
table_address = jvt_table_add + (index << 2);
table_a = {2'b00, table_address[CVA6Cfg.XLEN-1:0]};
req_port_o.address_index = table_a[9:0];
req_port_o.address_tag = table_a[33:10];
req_port_o.data_wdata = 1'b0;
req_port_o.data_wuser = '0;
req_port_o.data_req = 1'b1;
req_port_o.data_we = 1'b0;
req_port_o.data_be = 1'b0;
req_port_o.data_size = 2'b10;
req_port_o.data_id = 1;
req_port_o.kill_req = 0;
req_port_o.tag_valid = 1;

end else if (CVA6Cfg.XLEN == 64) begin
jvt_table_add = {jvt_base_i[31:6], 6'b000000};
table_address = jvt_table_add + (index << 3);
table_a = {2'b00, table_address[CVA6Cfg.XLEN-1:0]};
// will will completed in future( for 64 bit embedded core)
illegal_instr_o = 1'b1;
end else begin
illegal_instr_o = 1'b1;
instr_o_reg = instr_i;
end
end
JALT: begin
if(CVA6Cfg.XLEN == 32) begin
Expand Down

0 comments on commit 79936ee

Please sign in to comment.