vead
Full Member level 5
- Joined
- Nov 27, 2011
- Messages
- 285
- Helped
- 3
- Reputation
- 6
- Reaction score
- 3
- Trophy points
- 1,298
- Location
- india
- Activity points
- 3,815
I want to write input and output for microcontroller in verilog langugae
I have done some work
Microcontroller has following function
· ALU
· Decoder
· Port
· Counter
· Interrupt
· Accumulator
· Stack pointer
· Data pointer
· Special function register
· Serial communication
· Internal rom
· External rom
· Internal ram
· External Ram
(I am not seeing option for code so I am posting here )
verilog
Module mcu (clk, rst, en, p_in, p_out, t_in, t_out, i_in,i_out, rx_in, tx_out, a,b, s0,s1,s2, a0,a1,a2,d0,d1,d2,d3,d4,d5,d6.....etc )
Rst= reset input
Clk= clock input
En= enable input
Port
P_in=port input
P_out= port output
Timer
T_in = timer input
T_out = timer output
Interrupt
i_in= input for interrupt
i_out,= output for interrupt
ALU
A=input
B=input
So=input
S1=input
S2=input
F=output
Decoder
A0=input
A1=input
A2=input
D0=output
D1=output
D2=output
D3=output
D4=output
D5=output
D6=output
Can anyone tell me how to write input and output for microcontroller in verilog langugae ?
I have done some work
Microcontroller has following function
· ALU
· Decoder
· Port
· Counter
· Interrupt
· Accumulator
· Stack pointer
· Data pointer
· Special function register
· Serial communication
· Internal rom
· External rom
· Internal ram
· External Ram
(I am not seeing option for code so I am posting here )
verilog
Module mcu (clk, rst, en, p_in, p_out, t_in, t_out, i_in,i_out, rx_in, tx_out, a,b, s0,s1,s2, a0,a1,a2,d0,d1,d2,d3,d4,d5,d6.....etc )
Rst= reset input
Clk= clock input
En= enable input
Port
P_in=port input
P_out= port output
Timer
T_in = timer input
T_out = timer output
Interrupt
i_in= input for interrupt
i_out,= output for interrupt
ALU
A=input
B=input
So=input
S1=input
S2=input
F=output
Decoder
A0=input
A1=input
A2=input
D0=output
D1=output
D2=output
D3=output
D4=output
D5=output
D6=output
Can anyone tell me how to write input and output for microcontroller in verilog langugae ?