Commit 8d02a69e authored by Iulian Gheorghiu's avatar Iulian Gheorghiu

Fix mixed blocking and unblocking signals.

parent 53dede2d
......@@ -463,7 +463,7 @@ begin
//data_addr_int <= 'h00000000;
//data_out_int <= 8'h00;
//io_addr_int <= 6'h00;
//io_out_int <= 8'h00;
//io_out_int = 8'h00;
//PC_TMP_H <= 8'h00;
//int_rst <= 1'b0;
end
......@@ -533,7 +533,7 @@ begin
endcase
/* Set "io_out" */ /*************************************************************/
casex({execute, state_cnt, CORE_TYPE, pgm_data_registered})
{1'b1, `STEP1, `INSTRUCTION_OUT}: io_out_int <= reg_rs1;
{1'b1, `STEP1, `INSTRUCTION_OUT}: io_out_int = reg_rs1;
{1'b1, `STEP1, `INSTRUCTION_CBI_SBI}:
begin
case(pgm_data_registered[2:0])
......@@ -590,7 +590,7 @@ begin
{1'b1, `STEP1, `INSTRUCTION_CBI_SBI}:
begin
case({pgm_data_registered[10:9],pgm_data_registered[3:0]})
6'h3F: SREG = io_out_int; /*SREG*/
6'h3F: SREG <= io_out_int; /*SREG*/
endcase
end
endcase
......@@ -633,11 +633,11 @@ begin
{1'b1, `STEP1, `INSTRUCTION_CBI_SBI}:
begin
case({pgm_data_registered[10:9],pgm_data_registered[3:0]})
6'h3D: SP[7:0] = io_out_int; /*SPL*/
6'h3D: SP[7:0] <= io_out_int; /*SPL*/
6'h3E:
begin
if(RAM_ADDR_WIDTH > 8)
SP[RAM_ADDR_WIDTH - 1:8] = io_out_int; /*SPH*/
SP[RAM_ADDR_WIDTH - 1:8] <= io_out_int; /*SPH*/
end
endcase
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment