Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

verilog code for input output

Status
Not open for further replies.

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 ?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top