//--------------------------------------------------------------------------------------------------
//
// Title       : PWMtranslator
// Design      : U4
// Author      : mbari###
// Company     : MBARI
//
//-------------------------------------------------------------------------------------------------
//
// File        : c:\projects\genosensor\2g\cplds\core\u4\src\PWMtranslator.v
// Generated   : Fri Dec 19 18:07:00 2003
// From        : interface description file
// By          : Itf2Vhdl ver. 1.20
//
//-------------------------------------------------------------------------------------------------
//
// Description : 
//
//-------------------------------------------------------------------------------------------------
`timescale 1ps / 1ps

//{{ Section below this comment is automatically maintained
//   and may be overwritten
//{module {PWMtranslator}}		  

 
module PWMtranslator ( PWM ,fBRK ,Brake ,HBRK ,PAH ,PBH ,PAL ,PBL ,DIR );

input PWM ;
wire PWM ;
input fBRK ;
wire fBRK ;
input Brake ;
wire Brake ;
input HBRK ;
wire HBRK ;
input DIR ;
wire DIR ;

output PAH ;
wire PAH ;
output PBH ;
wire PBH ;
output PAL ;
wire PAL ;
output PBL ;
wire PBL ;

//}} End of automatically maintained section

// -- Enter your statements here -- //



wire BRK;

assign BRK = (fBRK | Brake | HBRK);

//PH(fBRK,Brake,DIR,PWM,PAH);	 
//PL(fBRK,Brake,DIR,PWM,PAL);	 
//PH(fBRK,Brake,!DIR,PWM,PBH);	 
//PH(fBRK,Brake,!DIR,PWM,PBL);	 

assign PAH = (PWM & !DIR & !BRK);
assign PAL = (!PWM & DIR & !BRK) | (PWM & !DIR & !BRK);
assign PBH = (PWM & DIR & !BRK);
assign PBL = (!PWM & !DIR & !BRK) | (PWM & DIR & !BRK);

endmodule

