kingneb
Newbie level 3
- Joined
- Sep 7, 2010
- Messages
- 3
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,306
Hi,
I am fairly new to Verilog but have experience in VHDL. Here is a question that probably has a simple solution, but I am new and learn fast.
In the state machine, I have a module with two outputs.
I receive an error when I attempt to assert or deassert the outputs directly in the state machine. I am missing something, and I know it is simple. Specifically, it is complaining the outputs are 'not of the register type'.
Note for simplicity that the rest of the code is not shown.
I am fairly new to Verilog but have experience in VHDL. Here is a question that probably has a simple solution, but I am new and learn fast.
In the state machine, I have a module with two outputs.
Code:
module(
output DATA_REQUEST,
output RESULT_LOAD,
);
Code:
// Procedures.
always @(posedge CLOCK)
begin : SEQUENTIAL // Sequential logic block.
CURRENT_STATE <= NEXT_STATE;
end
always @(CURRENT_STATE)
begin : COMBINATORIAL // Combinatorial logic block.
case (CURRENT_STATE)
INITIAL:
begin
RESULT_LOAD <= 1'b0; // Errors result here.
TIMER_RESET <= 1'b1; // Errors result here.
T0 <= 24'd0;
T1 <= 24'd1;
ACCRUE_REG <= 24'd0;
end
endcase
end
Note for simplicity that the rest of the code is not shown.