hello experts
I want to write input and output for microcontroller in verilog langugae
I have tried to write code
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
Verilog code
Can anyone teach me how to write input and output for microcontroller in verilog langugae ?
I want to write input and output for microcontroller in verilog langugae
I have tried to write code
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
Verilog code
Code:
Module mcu (clk, rst, en, p_in, p_out, t_in, t_out, i_in,i_out, rx_in, tx_out ,a0,a1,a2,d0,d1,d2,d3,d4,d5,d6,d7,a,b,s0,s1,s2,f,........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 teach me how to write input and output for microcontroller in verilog langugae ?