Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
17 years ago

Functional UART in DSP Builder

I'm trying to create a custom board file in DSP Builder (based off the Cyclone III Starter board) that has a UART additional to the existing design.

I copied the RS-232 interface options from the Stratix board example and pasted them into my ".board" file, below.

How would I now get a UART in DSP Builder? In Quartus, I use NIOS with UART to communicate, so I don't have a stand-alone UART vhdl file I could import.

<?xml version="1.0" encoding="UTF-8"?>
<board uniquename="MyBoard" family="Cyclone III">
	<displayname>Custom Board</displayname>	
<!-- RS-232 Interface-->
	<component name="RS232Rout" pin="Pin_M13"/>
	<component name="RS232Tin"  pin="Pin_P13"/>
<!-- LEDs-->
	<component name="LED1" pin="Pin_P13"/>
	<component name="LED2" pin="Pin_P12"/>
	<component name="LED3" pin="Pin_N12"/>
	<component name="LED4" pin="Pin_N9"/>
<!-- Switches -->
	<component name="SW1" pin="Pin_F1"/>
	<component name="SW2" pin="Pin_F2"/>
	<component name="SW3" pin="Pin_A10"/>
	<component name="SW4" pin="Pin_B10"/>
<!-- User Reset_n: SW6 on board-->
	<component name="CPU_RESETN" pin="Pin_N2"/>
	<configuration icon="myboard.bmp" width="37" height="40">
		<devices jtag-code="0x020F30DD">
			<device name="EP3C25F324C8" />
		</devices>
		<!-- Input clock selection list -->
		<option name="ClockPinIn" label="Clock Pin In">
			<pin location="Pin_B9"/>
			<pin location="None"/>
		</option>
		<!-- Global Reset Pin -->
		<option name="GlobalResetPin" label="Global Reset Pin">
			<pin location="Pin_N2"/>
			<pin location="Pin_F1"/>
			<pin location="Pin_F2"/>
			<pin location="Pin_A10"/>
			<pin location="Pin_B10"/>
			<pin location="None"/>
		</option>
	</configuration>
</board>

It does compile, and the board shows up under the Altera DSP Blockset

Thanks

--Mickey
No RepliesBe the first to reply